Skip to content

Commit

Permalink
test/failed-doctest-output: Fix normalization
Browse files Browse the repository at this point in the history
Otherwise we get:

1
2       running 2 tests
-       test $DIR/failed-doctest-output.rs - OtherStruct (line 20) ... FAILED
-       test $DIR/failed-doctest-output.rs - SomeStruct (line 10) ... FAILED
+       test src/rustc-1.38.0-src/$DIR/failed-doctest-output.rs - OtherStruct (line 20) ... FAILED
+       test src/rustc-1.38.0-src/$DIR/failed-doctest-output.rs - SomeStruct (line 10) ... FAILED
5
6       failures:
7
  • Loading branch information
smaeul committed Jun 24, 2024
1 parent f516ef7 commit 735a227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/rustdoc-ui/doctest/failed-doctest-output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

// compile-flags:--test --test-args --test-threads=1
// rustc-env:RUST_BACKTRACE=0
// normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
// normalize-stdout-test: "[[:graph:]]*tests/rustdoc-ui/doctest" -> "$$DIR"
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
// failure-status: 101

Expand Down

0 comments on commit 735a227

Please sign in to comment.