We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fcb79a5 commit be6598bCopy full SHA for be6598b
tests/testsuite/test.rs
@@ -5009,7 +5009,11 @@ fn panic_abort_tests() {
5009
.file("a/src/lib.rs", "pub fn foo() {}")
5010
.build();
5011
5012
- p.cargo("test -Z panic-abort-tests -v")
+ // This uses -j1 because of a race condition. Otherwise it will build the
5013
+ // two copies of `foo` in parallel, and which one is first is random. If
5014
+ // `--test` is first, then the first line with `[..]` will match, and the
5015
+ // second line with `--test` will fail.
5016
+ p.cargo("test -Z panic-abort-tests -v -j1")
5017
.with_stderr_data(
5018
str![[r#"
5019
[RUNNING] `[..]--crate-name a [..]-C panic=abort[..]`
0 commit comments