@@ -333,6 +333,8 @@ pub struct TestProps {
333
333
pub assembly_output : Option < String > ,
334
334
// If true, the test is expected to ICE
335
335
pub should_ice : bool ,
336
+ // If true, the stderr is expected to be different across bit-widths.
337
+ pub stderr_per_bitwidth : bool ,
336
338
}
337
339
338
340
impl TestProps {
@@ -372,6 +374,7 @@ impl TestProps {
372
374
rustfix_only_machine_applicable : false ,
373
375
assembly_output : None ,
374
376
should_ice : false ,
377
+ stderr_per_bitwidth : false ,
375
378
}
376
379
}
377
380
@@ -538,6 +541,10 @@ impl TestProps {
538
541
if self . assembly_output . is_none ( ) {
539
542
self . assembly_output = config. parse_assembly_output ( ln) ;
540
543
}
544
+
545
+ if !self . stderr_per_bitwidth {
546
+ self . stderr_per_bitwidth = config. parse_stderr_per_bitwidth ( ln) ;
547
+ }
541
548
} ) ;
542
549
}
543
550
@@ -774,6 +781,10 @@ impl Config {
774
781
self . parse_name_directive ( line, "ignore-pass" )
775
782
}
776
783
784
+ fn parse_stderr_per_bitwidth ( & self , line : & str ) -> bool {
785
+ self . parse_name_directive ( line, "stderr-per-bitwidth" )
786
+ }
787
+
777
788
fn parse_assembly_output ( & self , line : & str ) -> Option < String > {
778
789
self . parse_name_value_directive ( line, "assembly-output" ) . map ( |r| r. trim ( ) . to_string ( ) )
779
790
}
0 commit comments