]> git.proxmox.com Git - cargo.git/commitdiff
Fix no_cross_doctests race condition.
authorEric Huss <eric@huss.org>
Wed, 11 May 2022 21:10:49 +0000 (14:10 -0700)
committerEric Huss <eric@huss.org>
Wed, 11 May 2022 21:10:49 +0000 (14:10 -0700)
tests/testsuite/cross_compile.rs

index f2e6085285f14690c028a828a0c1bf7952e10b95..e3ad7c50ecd5b641f8ab75146c37094a9f37446a 100644 (file)
@@ -594,10 +594,11 @@ fn no_cross_doctests() {
     let target = rustc_host();
     p.cargo("test -v --target")
         .arg(&target)
-        .with_stderr(&format!(
+        // Unordered since the two `rustc` invocations happen concurrently.
+        .with_stderr_unordered(&format!(
             "\
 [COMPILING] foo v0.0.1 ([CWD])
-[RUNNING] `rustc --crate-name foo [..]
+[RUNNING] `rustc --crate-name foo [..]--crate-type lib[..]
 [RUNNING] `rustc --crate-name foo [..]--test[..]
 [FINISHED] test [unoptimized + debuginfo] target(s) in [..]
 [RUNNING] `[CWD]/target/{target}/debug/deps/foo-[..][EXE]`