extra: Capture stdout/stderr of tests by default
When tests fail, their stdout and stderr is printed as part of the summary, but this helps suppress failure messages from #[should_fail] tests and generally clean up the output of the test runner.
This commit is contained in:
parent
665555d58f
commit
ee2a888860
6 changed files with 78 additions and 34 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// error-pattern:runned an unexported test
|
||||
// compile-flags:--test
|
||||
// check-stdout
|
||||
|
||||
extern mod extra;
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// check-stdout
|
||||
// error-pattern:task 'test_foo' failed at
|
||||
// compile-flags: --test
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue