mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
8bfe9dbae2
Previously, libtest would wait until all tests finished running to print the progress, which made it annoying to run many tests at once (since you don't know which have failed). Change it to print the names as soon as they fail. This also adds a test for the terse output; previously it was untested.
32 lines
658 B
Plaintext
32 lines
658 B
Plaintext
|
|
running 103 tests
|
|
abc --- FAILED
|
|
....................................................................................... 88/103
|
|
............. 101/103
|
|
foo --- FAILED
|
|
foo2 --- FAILED
|
|
|
|
failures:
|
|
|
|
---- abc stdout ----
|
|
thread 'abc' panicked at $DIR/terse.rs:12:5:
|
|
explicit panic
|
|
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
|
|
|
|
---- foo stdout ----
|
|
thread 'foo' panicked at $DIR/terse.rs:17:5:
|
|
explicit panic
|
|
|
|
---- foo2 stdout ----
|
|
thread 'foo2' panicked at $DIR/terse.rs:22:5:
|
|
explicit panic
|
|
|
|
|
|
failures:
|
|
abc
|
|
foo
|
|
foo2
|
|
|
|
test result: FAILED. 100 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
|
|
|