@@ -6,10 +6,13 @@ use cargo::{
66 ops:: CompileOptions ,
77 GlobalContext ,
88} ;
9+ use cargo_test_support:: compare:: assert_e2e;
910use cargo_test_support:: paths:: { root, CargoPathExt } ;
11+ use cargo_test_support:: prelude:: * ;
1012use cargo_test_support:: registry:: Package ;
13+ use cargo_test_support:: str;
1114use cargo_test_support:: {
12- basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, cargo_process, compare , git,
15+ basic_bin_manifest, basic_lib_manifest, basic_manifest, cargo_exe, cargo_process, git,
1316 is_nightly, main_file, paths, process, project, rustc_host, sleep_ms, symlink_supported, t,
1417 tools, Execs , ProjectBuilder ,
1518} ;
@@ -6448,17 +6451,17 @@ fn close_output() {
64486451 } ;
64496452
64506453 let stderr = spawn ( false ) ;
6451- compare:: match_unordered (
6452- "\
6453- [COMPILING] foo [..]
6454+ assert_e2e ( ) . eq (
6455+ & stderr,
6456+ str![ [ r#"
6457+ [COMPILING] foo v0.1.0 ([ROOT]/foo)
64546458hello stderr!
6455- [ERROR] [..]
6459+ [ERROR] Broken pipe (os error 32)
64566460[WARNING] build failed, waiting for other jobs to finish...
6457- " ,
6458- & stderr,
6459- None ,
6460- )
6461- . unwrap ( ) ;
6461+
6462+ "# ] ]
6463+ . unordered ( ) ,
6464+ ) ;
64626465
64636466 // Try again with stderr.
64646467 p. build_dir ( ) . rm_rf ( ) ;
0 commit comments