@@ -205,6 +205,8 @@ pub struct TestProps {
205
205
pub dont_require_annotations : HashSet < ErrorKind > ,
206
206
/// Whether pretty printers should be disabled in gdb.
207
207
pub disable_gdb_pretty_printers : bool ,
208
+ /// Compare the output by lines, rather than as a single string.
209
+ pub compare_output_by_lines : bool ,
208
210
}
209
211
210
212
mod directives {
@@ -254,6 +256,7 @@ mod directives {
254
256
// This isn't a real directive, just one that is probably mistyped often
255
257
pub const INCORRECT_COMPILER_FLAGS : & ' static str = "compiler-flags" ;
256
258
pub const DISABLE_GDB_PRETTY_PRINTERS : & ' static str = "disable-gdb-pretty-printers" ;
259
+ pub const COMPARE_OUTPUT_BY_LINES : & ' static str = "compare-output-by-lines" ;
257
260
}
258
261
259
262
impl TestProps {
@@ -310,6 +313,7 @@ impl TestProps {
310
313
add_core_stubs : false ,
311
314
dont_require_annotations : Default :: default ( ) ,
312
315
disable_gdb_pretty_printers : false ,
316
+ compare_output_by_lines : false ,
313
317
}
314
318
}
315
319
@@ -664,6 +668,11 @@ impl TestProps {
664
668
DISABLE_GDB_PRETTY_PRINTERS ,
665
669
& mut self . disable_gdb_pretty_printers ,
666
670
) ;
671
+ config. set_name_directive (
672
+ ln,
673
+ COMPARE_OUTPUT_BY_LINES ,
674
+ & mut self . compare_output_by_lines ,
675
+ ) ;
667
676
} ,
668
677
) ;
669
678
0 commit comments