Skip to content

Commit 4a30a64

Browse files
committed
Fix normalization
This shouldn't be necessary .... compiletest should do this automatically :/ not sure what's going on here, something to do with absolute vs relative paths.
1 parent ab196d7 commit 4a30a64

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

tests/rustdoc-ui/doctest/force-merge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@ check-pass
22
//@ edition: 2018
33
//@ compile-flags: --test --test-args=--test-threads=1 --merge-doctests=yes -Z unstable-options
4-
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
4+
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
55
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
66
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
77
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"

tests/rustdoc-ui/doctest/force-merge.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
running 2 tests
3-
test $DIR/doctest/force-merge.rs - Foo (line 14) ... ok
4-
test $DIR/doctest/force-merge.rs - Foo (line 20) ... ok
3+
test $DIR/force-merge.rs - Foo (line 14) ... ok
4+
test $DIR/force-merge.rs - Foo (line 20) ... ok
55

66
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
77

tests/rustdoc-ui/doctest/force-no-merge.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//@ compile-flags: --test --test-args=--test-threads=1 --merge-doctests=no -Z unstable-options
44
//@ normalize-stderr: ".*doctest_bundle_2018.rs:\d+:\d+" -> "doctest_bundle_2018.rs:$$LINE:$$COL"
55

6-
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
6+
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
77
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
88
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
99
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
running 2 tests
3-
test $DIR/doctest/force-no-merge.rs - Foo (line 15) ... ok
4-
test $DIR/doctest/force-no-merge.rs - Foo (line 20) ... ok
3+
test $DIR/force-no-merge.rs - Foo (line 15) ... ok
4+
test $DIR/force-no-merge.rs - Foo (line 20) ... ok
55

66
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
77

tests/rustdoc-ui/doctest/merge-doctests-auto.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//@ edition: 2018
55
//@ compile-flags: --test --test-args=--test-threads=1 --merge-doctests=auto -Z unstable-options
66

7-
//@ normalize-stdout: "tests/rustdoc-ui" -> "$$DIR"
7+
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
88
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
99
//@ normalize-stdout: "ran in \d+\.\d+s" -> "ran in $$TIME"
1010
//@ normalize-stdout: "compilation took \d+\.\d+s" -> "compilation took $$TIME"

tests/rustdoc-ui/doctest/merge-doctests-auto.stdout

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
running 2 tests
3-
test $DIR/doctest/merge-doctests-auto.rs - Foo (line 17) ... ok
4-
test $DIR/doctest/merge-doctests-auto.rs - Foo (line 23) ... ok
3+
test $DIR/merge-doctests-auto.rs - Foo (line 17) ... ok
4+
test $DIR/merge-doctests-auto.rs - Foo (line 23) ... ok
55

66
test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
77

0 commit comments

Comments
 (0)