about summary refs log tree commit diff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-12 10:25:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-14 07:46:29 -0800
commitee2a888860ea496b5a972ed35fb742b4ae008233 (patch)
tree249171a9397fb0a961bb7d19dff6f25e8f587ac1 /src/test
parent665555d58f2aa3c1d8aecd7b34392bde6c41b20d (diff)
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.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/run-fail/run-unexported-tests.rs1
-rw-r--r--src/test/run-fail/test-fail.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/test/run-fail/run-unexported-tests.rs b/src/test/run-fail/run-unexported-tests.rs
index e9d3c41faa6..427e606147d 100644
--- a/src/test/run-fail/run-unexported-tests.rs
+++ b/src/test/run-fail/run-unexported-tests.rs
@@ -10,6 +10,7 @@
 
 // error-pattern:runned an unexported test
 // compile-flags:--test
+// check-stdout
 
 extern mod extra;
 
diff --git a/src/test/run-fail/test-fail.rs b/src/test/run-fail/test-fail.rs
index ddd54f00159..77d87c22c6f 100644
--- a/src/test/run-fail/test-fail.rs
+++ b/src/test/run-fail/test-fail.rs
@@ -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