@@ -137,6 +137,8 @@ pub struct TestProps {
137
137
pub dont_check_compiler_stdout : bool ,
138
138
// For UI tests, allows compiler to generate arbitrary output to stderr
139
139
pub dont_check_compiler_stderr : bool ,
140
+ // Use single thread for the rustc front end.
141
+ pub single_thread : bool ,
140
142
// When checking the output of stdout or stderr check
141
143
// that the lines of expected output are a subset of the actual output.
142
144
pub compare_output_lines_by_subset : bool ,
@@ -259,6 +261,7 @@ mod directives {
259
261
pub const KNOWN_BUG : & ' static str = "known-bug" ;
260
262
pub const TEST_MIR_PASS : & ' static str = "test-mir-pass" ;
261
263
pub const REMAP_SRC_BASE : & ' static str = "remap-src-base" ;
264
+ pub const SINGLE_THREAD : & ' static str = "single-thread" ;
262
265
pub const COMPARE_OUTPUT_LINES_BY_SUBSET : & ' static str = "compare-output-lines-by-subset" ;
263
266
pub const LLVM_COV_FLAGS : & ' static str = "llvm-cov-flags" ;
264
267
pub const FILECHECK_FLAGS : & ' static str = "filecheck-flags" ;
@@ -291,6 +294,7 @@ impl TestProps {
291
294
build_aux_docs : false ,
292
295
unique_doc_out_dir : false ,
293
296
force_host : false ,
297
+ single_thread : false ,
294
298
check_stdout : false ,
295
299
check_run_results : false ,
296
300
dont_check_compiler_stdout : false ,
@@ -582,6 +586,7 @@ impl TestProps {
582
586
|s| s. trim ( ) . to_string ( ) ,
583
587
) ;
584
588
config. set_name_directive ( ln, REMAP_SRC_BASE , & mut self . remap_src_base ) ;
589
+ config. set_name_directive ( ln, SINGLE_THREAD , & mut self . single_thread ) ;
585
590
config. set_name_directive (
586
591
ln,
587
592
COMPARE_OUTPUT_LINES_BY_SUBSET ,
0 commit comments