Skip to content

Commit a9ae668

Browse files
committed
Attempt to debug a spurious test.
1 parent 8fd0bd4 commit a9ae668

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tests/testsuite/test.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3562,13 +3562,13 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
35623562
)
35633563
.run();
35643564

3565-
p.cargo("test --doc")
3566-
.with_stderr(
3567-
"\
3568-
[FINISHED] dev [unoptimized + debuginfo] target(s) in [..]
3569-
[DOCTEST] foo
3570-
",
3571-
)
3565+
// This has been modified to attempt to diagnose spurious errors on CI.
3566+
// For some reason, this is recompiling the lib when it shouldn't. If the
3567+
// root cause is ever found, the changes here should be reverted.
3568+
// See https://github.com/rust-lang/cargo/issues/6887
3569+
p.cargo("test --doc -vv")
3570+
.with_stderr_does_not_contain("[COMPILING] foo [..]")
3571+
.with_stderr_contains("[DOCTEST] foo")
35723572
.with_stdout(
35733573
"
35743574
running 1 test
@@ -3578,6 +3578,7 @@ test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out
35783578
35793579
",
35803580
)
3581+
.env("RUST_LOG", "cargo=trace")
35813582
.run();
35823583

35833584
p.cargo("test --lib --doc")

0 commit comments

Comments
 (0)