Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions tests/rustdoc-html/doctest/doctest-runtool.rs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test --cfg feature="bar"
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// https://github.com/rust-lang/rust/issues/30252
#![crate_name="issue_30252"]
Expand Down
6 changes: 6 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-cfg-feature-30252.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-cfg-feature-30252.rs - foo (line 8) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ compile-flags:--test --test-args=--test-threads=1
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// This file tests the source-partitioning behavior of rustdoc.
// Each test contains some code that should be put into the generated
Expand Down
10 changes: 10 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-crate-attributes-38129.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

running 5 tests
test $DIR/doctest-crate-attributes-38129.rs - both_attrs (line 49) ... ok
test $DIR/doctest-crate-attributes-38129.rs - both_attrs_reverse (line 76) ... ok
test $DIR/doctest-crate-attributes-38129.rs - feature_attr (line 43) ... ok
test $DIR/doctest-crate-attributes-38129.rs - non_feature_attr (line 17) ... ok
test $DIR/doctest-crate-attributes-38129.rs - simple (line 12) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// https://github.com/rust-lang/rust/issues/23106
#![crate_name="issue_23106"]
Expand Down
6 changes: 6 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-hide-empty-line-23106.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-hide-empty-line-23106.rs - main (line 8) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// https://github.com/rust-lang/rust/issues/32556
//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

#![crate_name="issue_32556"]

/// Blah blah blah
Expand Down
6 changes: 6 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-ignore-32556.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-ignore-32556.rs - foo (line 9) ... ignored

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

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// which the test is declared.

//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

/// ```rust
/// include!("auxiliary/empty.rs");
Expand Down
6 changes: 6 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-include-43153.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-include-43153.rs - Foo (line 10) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// https://github.com/rust-lang/rust/issues/38219

//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ should-fail

/// ```
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

//! ```
//! #![crate_name="asdf"]
Expand Down
6 changes: 6 additions & 0 deletions tests/rustdoc-ui/doctest/doctest-manual-crate-name.stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-manual-crate-name.rs - (line 5) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ compile-flags:--test --test-args=--test-threads=1
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// https://github.com/rust-lang/rust/issues/23744
#![crate_name="issue_23744"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

running 2 tests
test $DIR/doctest-markdown-inline-parse-23744.rs - foo (line 10) ... ok
test $DIR/doctest-markdown-inline-parse-23744.rs - foo (line 14) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ compile-flags:--test --test-args=--test-threads=1
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// https://github.com/rust-lang/rust/issues/48377

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

running 2 tests
test $DIR/doctest-markdown-trailing-docblock-48377.rs - (line 14) ... ok
test $DIR/doctest-markdown-trailing-docblock-48377.rs - (line 9) ... ok

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

Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags:--test
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"
//@ check-pass

// https://github.com/rust-lang/rust/issues/25944
#![crate_name="issue_25944"]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

running 1 test
test $DIR/doctest-multi-line-string-literal-25944.rs - main (line 8) ... ok

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

Loading