@@ -169,9 +169,10 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
169
169
REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-input.txt" ) ,
170
170
)
171
171
. unwrap ( ) ;
172
- let expected_path =
173
- REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-output.txt" ) ;
174
- let expected = fs:: read_to_string ( & expected_path) . unwrap ( ) ;
172
+ let expected = fs:: read_to_string (
173
+ REGEX . source_dir ( & runner. dirs ) . join ( "examples" ) . join ( "regexdna-output.txt" ) ,
174
+ )
175
+ . unwrap ( ) ;
175
176
176
177
let output = spawn_and_wait_with_input ( run_cmd, input) ;
177
178
// Make sure `[codegen mono items] start` doesn't poison the diff
@@ -184,20 +185,9 @@ const EXTENDED_SYSROOT_SUITE: &[TestCase] = &[
184
185
185
186
let output_matches = expected. lines ( ) . eq ( output. lines ( ) ) ;
186
187
if !output_matches {
187
- let res_path = REGEX . source_dir ( & runner. dirs ) . join ( "res.txt" ) ;
188
- fs:: write ( & res_path, & output) . unwrap ( ) ;
189
-
190
- if cfg ! ( windows) {
191
- println ! ( "Output files don't match!" ) ;
192
- println ! ( "Expected Output:\n {}" , expected) ;
193
- println ! ( "Actual Output:\n {}" , output) ;
194
- } else {
195
- let mut diff = Command :: new ( "diff" ) ;
196
- diff. arg ( "-u" ) ;
197
- diff. arg ( res_path) ;
198
- diff. arg ( expected_path) ;
199
- spawn_and_wait ( diff) ;
200
- }
188
+ println ! ( "Output files don't match!" ) ;
189
+ println ! ( "Expected Output:\n {}" , expected) ;
190
+ println ! ( "Actual Output:\n {}" , output) ;
201
191
202
192
std:: process:: exit ( 1 ) ;
203
193
}
0 commit comments