From 56c2769de357ade8a3617e4a7da2f739225616ac Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Tue, 3 May 2022 20:46:02 +0200 Subject: [PATCH] Fix flaky rustdoc-ui test because it did not replace time result --- src/test/rustdoc-ui/block-doc-comment.rs | 1 + src/test/rustdoc-ui/block-doc-comment.stdout | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/rustdoc-ui/block-doc-comment.rs b/src/test/rustdoc-ui/block-doc-comment.rs index c60dfa3f9518e..ce529916e5ede 100644 --- a/src/test/rustdoc-ui/block-doc-comment.rs +++ b/src/test/rustdoc-ui/block-doc-comment.rs @@ -1,5 +1,6 @@ // check-pass // compile-flags:--test +// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME" // This test ensures that no code block is detected in the doc comments. diff --git a/src/test/rustdoc-ui/block-doc-comment.stdout b/src/test/rustdoc-ui/block-doc-comment.stdout index e5c27bebbdb23..7326c0a25a069 100644 --- a/src/test/rustdoc-ui/block-doc-comment.stdout +++ b/src/test/rustdoc-ui/block-doc-comment.stdout @@ -1,5 +1,5 @@ running 0 tests -test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s +test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME