Skip to content

Commit

Permalink
Add test for rustdoc --nocapture option
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jul 18, 2021
1 parent 6ca0e5e commit 111cca1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/rustdoc-ui/nocapture.rs
@@ -0,0 +1,10 @@
// check-pass
// compile-flags:--test -Zunstable-options --nocapture
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"

/// ```
/// println!("hello!");
/// eprintln!("stderr");
/// ```
pub struct Foo;
1 change: 1 addition & 0 deletions src/test/rustdoc-ui/nocapture.stderr
@@ -0,0 +1 @@
stderr
7 changes: 7 additions & 0 deletions src/test/rustdoc-ui/nocapture.stdout
@@ -0,0 +1,7 @@

running 1 test
hello!
test $DIR/nocapture.rs - Foo (line 6) ... ok

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

0 comments on commit 111cca1

Please sign in to comment.