File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,22 @@ fn bad_cfg_discovery() {
356
356
return;
357
357
}
358
358
println!("{}", sysroot);
359
+
360
+ if mode == "no-split-debuginfo" {
361
+ return;
362
+ }
363
+ loop {
364
+ let line = lines.next().unwrap();
365
+ if line == "___" {
366
+ println!("\n{line}");
367
+ break;
368
+ } else {
369
+ // As the number split-debuginfo options varies,
370
+ // concat them into one line.
371
+ print!("{line},");
372
+ }
373
+ };
374
+
359
375
if mode != "bad-cfg" {
360
376
panic!("unexpected");
361
377
}
@@ -412,6 +428,28 @@ command was: `[..]compiler[..]--crate-type [..]`
412
428
[..]___[..]
413
429
[..]___[..]
414
430
431
+ " ,
432
+ )
433
+ . run ( ) ;
434
+
435
+ p. cargo ( "build" )
436
+ . env ( "RUSTC" , & funky_rustc)
437
+ . env ( "FUNKY_MODE" , "no-split-debuginfo" )
438
+ . with_status ( 101 )
439
+ . with_stderr (
440
+ "\
441
+ [ERROR] output of --print=split-debuginfo missing when learning about target-specific information from rustc
442
+ command was: `[..]compiler[..]--crate-type [..]`
443
+
444
+ --- stdout
445
+ [..]___[..]
446
+ [..]___[..]
447
+ [..]___[..]
448
+ [..]___[..]
449
+ [..]___[..]
450
+ [..]___[..]
451
+ [..]
452
+
415
453
" ,
416
454
)
417
455
. run ( ) ;
@@ -430,6 +468,8 @@ command was: `[..]compiler[..]--crate-type [..]`
430
468
[..]___[..]
431
469
[..]___[..]
432
470
[..]
471
+ [..],[..]
472
+ ___
433
473
123
434
474
435
475
You can’t perform that action at this time.
0 commit comments