rust/library/test/src
Anders Kaseorg 03fe394e93 libtest: Fix unwrap panic on duplicate TestDesc.
It is possible for different tests to collide to the same TestDesc
when macros are involved.  That is a bug, but it didn’t cause a panic
until #81367.  For now, change the code to ignore this problem.

Fixes #81852.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
(cherry picked from commit 1605af015c)
2021-03-10 15:42:28 -08:00
..
formatters libtest: Print the total time taken to execute a test suite 2020-11-27 17:53:59 +01:00
helpers Remove io::LocalOutput and use Arc<Mutex<dyn>> for local streams. 2020-11-10 21:57:05 +01:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
bench.rs Merge set_panic and set_print into set_output_capture. 2020-11-10 21:58:13 +01:00
cli.rs stabilise --include-ignored 2020-12-15 12:59:31 +00:00
console.rs libtest: Print the total time taken to execute a test suite 2020-11-27 17:53:59 +01:00
event.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
lib.rs libtest: Fix unwrap panic on duplicate TestDesc. 2021-03-10 15:42:28 -08:00
options.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00
stats.rs Fix some clippy issues 2020-10-01 01:34:38 -04:00
test_result.rs Print failure message on all tests that should panic, but don't 2021-01-10 01:18:23 -06:00
tests.rs Allow/fix non_fmt_panic in tests. 2021-02-03 23:15:45 +01:00
time.rs Dogfood 'str_split_once()` in the std lib 2020-12-07 14:24:05 -07:00
types.rs mv std libs to library/ 2020-07-27 19:51:13 -05:00