rust/library/test/src
许杰友 Jieyou Xu (Joe) 2074631732
Rollup merge of #123548 - RalfJung:what-is-time, r=joboet
libtest: also measure time in Miri

A long time ago we disabled timekeeping of the default test harness in Miri, as otherwise it would fail to run without `-Zmiri-disable-isolation`. However, since then Miri gained a "fake clock" that lets it present some deterministic notion of time when isolation is enabled.

So we could now let libtest do timekeeping again when running in Miri. That's nice as it can help detect tests that run too long. However it can also be confusing as the results with isolation can be quite different than the real time.

``@rust-lang/miri`` what do you think?
2024-04-15 16:56:14 +01:00
..
formatters Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00
helpers Use generic NonZero everywhere else. 2024-02-22 15:17:34 +01:00
stats mv std libs to library/ 2020-07-27 19:51:13 -05:00
term remove redundant imports 2023-12-10 10:56:22 +08:00
bench.rs Do not panic when a test function returns Result::Err. 2022-09-16 14:36:00 +00:00
cli.rs libtest: Improve error when missing -Zunstable-options 2023-05-24 11:18:20 -05:00
console.rs libtest: also measure time in Miri 2024-04-15 09:50:42 +02:00
event.rs Do fewer passes and generally be more efficient when filtering tests 2022-10-27 21:34:56 -04:00
lib.rs Drop panic hook after running tests 2024-04-06 18:56:22 +03:00
options.rs derive Default trait for compiletest::common::Config 2023-05-20 14:40:46 +03:00
stats.rs Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
term.rs WinConsole::new is not actually fallible 2022-10-21 12:18:33 +02:00
test_result.rs Actually abort in panic-abort-tests 2024-01-30 18:19:49 -08:00
tests.rs remove redundant imports 2023-12-10 10:56:22 +08:00
time.rs Fix uninlined_format_args in libtest 2022-12-19 08:58:40 +01:00
types.rs Rust is a proper name: rust → Rust 2024-03-07 07:49:22 +01:00