@@ -205,6 +205,8 @@ pub struct TestProps {
205205 pub dont_require_annotations : HashSet < ErrorKind > ,
206206 /// Whether pretty printers should be disabled in gdb.
207207 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 ,
208210}
209211
210212mod directives {
@@ -254,6 +256,7 @@ mod directives {
254256 // This isn't a real directive, just one that is probably mistyped often
255257 pub const INCORRECT_COMPILER_FLAGS : & ' static str = "compiler-flags" ;
256258 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" ;
257260}
258261
259262impl TestProps {
@@ -310,6 +313,7 @@ impl TestProps {
310313 add_core_stubs : false ,
311314 dont_require_annotations : Default :: default ( ) ,
312315 disable_gdb_pretty_printers : false ,
316+ compare_output_by_lines : false ,
313317 }
314318 }
315319
@@ -664,6 +668,11 @@ impl TestProps {
664668 DISABLE_GDB_PRETTY_PRINTERS ,
665669 & mut self . disable_gdb_pretty_printers ,
666670 ) ;
671+ config. set_name_directive (
672+ ln,
673+ COMPARE_OUTPUT_BY_LINES ,
674+ & mut self . compare_output_by_lines ,
675+ ) ;
667676 } ,
668677 ) ;
669678
0 commit comments