Skip to content

Commit 48e04f4

Browse files
Bless rustdoc ui tests
1 parent 8d833d4 commit 48e04f4

File tree

5 files changed

+27
-16
lines changed

5 files changed

+27
-16
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
running 2 tests
3-
test $DIR/cfg-test.rs - Bar (line 27) ... ok
43
test $DIR/cfg-test.rs - Foo (line 19) ... ok
4+
test $DIR/cfg-test.rs - Bar (line 27) ... ok
55

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

Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
running 3 tests
33
test $DIR/doctest-output.rs - (line 8) ... ok
4-
test $DIR/doctest-output.rs - ExpandedStruct (line 24) ... ok
54
test $DIR/doctest-output.rs - foo::bar (line 18) ... ok
5+
test $DIR/doctest-output.rs - ExpandedStruct (line 24) ... ok
66

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

tests/rustdoc-ui/doctest/failed-doctest-should-panic.stdout

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11

22
running 1 test
3-
test $DIR/failed-doctest-should-panic.rs - Foo (line 9) ... FAILED
3+
test $DIR/failed-doctest-should-panic.rs - Foo (line 9) - should panic ... FAILED
44

55
failures:
66

77
---- $DIR/failed-doctest-should-panic.rs - Foo (line 9) stdout ----
8-
Test executable succeeded, but it's marked `should_panic`.
8+
Hello, world!
9+
note: test did not panic as expected
910

1011
failures:
1112
$DIR/failed-doctest-should-panic.rs - Foo (line 9)
+12-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11

2-
running 7 tests
3-
test $DIR/no-run-flag.rs - f (line 11) - compile ... ok
2+
running 6 tests
43
test $DIR/no-run-flag.rs - f (line 14) ... ignored
5-
test $DIR/no-run-flag.rs - f (line 17) - compile ... ok
4+
test $DIR/no-run-flag.rs - f (line 11) ... ok
5+
test $DIR/no-run-flag.rs - f (line 17) ... ok
6+
test $DIR/no-run-flag.rs - f (line 28) ... ok
7+
test $DIR/no-run-flag.rs - f (line 32) ... ok
8+
test $DIR/no-run-flag.rs - f (line 8) ... ok
9+
10+
test result: ok. 5 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
11+
12+
13+
running 1 test
614
test $DIR/no-run-flag.rs - f (line 23) - compile fail ... ok
7-
test $DIR/no-run-flag.rs - f (line 28) - compile ... ok
8-
test $DIR/no-run-flag.rs - f (line 32) - compile ... ok
9-
test $DIR/no-run-flag.rs - f (line 8) - compile ... ok
1015

11-
test result: ok. 6 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
16+
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
1217

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11

2-
running 5 tests
2+
running 4 tests
33
test $DIR/test-type.rs - f (line 12) ... ignored
4-
test $DIR/test-type.rs - f (line 15) - compile ... ok
5-
test $DIR/test-type.rs - f (line 21) - compile fail ... ok
4+
test $DIR/test-type.rs - f (line 15) ... ok
65
test $DIR/test-type.rs - f (line 6) ... ok
7-
test $DIR/test-type.rs - f (line 9) ... ok
6+
test $DIR/test-type.rs - f (line 9) - should panic ... ok
7+
8+
test result: ok. 3 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
9+
10+
11+
running 1 test
12+
test $DIR/test-type.rs - f (line 21) - compile fail ... ok
813

9-
test result: ok. 4 passed; 0 failed; 1 ignored; 0 measured; 0 filtered out; finished in $TIME
14+
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
1015

0 commit comments

Comments
 (0)