File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/tools/compiletest/src Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -368,7 +368,8 @@ impl<'test> TestCx<'test> {
368
368
// if a test does not crash, consider it an error
369
369
match proc_res. status . code ( ) {
370
370
Some ( 101 ) => ( ) ,
371
- _ => self . fatal ( "expected ICE" ) ,
371
+ Some ( other) => self . fatal ( & format ! ( "expected exit code 101, got: {}" , other) ) ,
372
+ e => self . fatal ( & format ! ( "expected ICE, got '{:?}'" , e) ) ,
372
373
}
373
374
}
374
375
@@ -2307,6 +2308,9 @@ impl<'test> TestCx<'test> {
2307
2308
}
2308
2309
2309
2310
let ( Output { status, stdout, stderr } , truncated) = self . read2_abbreviated ( child) ;
2311
+ eprintln ! ( "{:?}" , status) ;
2312
+ eprintln ! ( "{}" , String :: from_utf8_lossy( & stdout) . into_owned( ) ) ;
2313
+ eprintln ! ( "{}" , String :: from_utf8_lossy( & stdout) . into_owned( ) ) ;
2310
2314
2311
2315
let result = ProcRes {
2312
2316
status,
You can’t perform that action at this time.
0 commit comments