rust/library/test
许杰友 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
..
src Rollup merge of #123548 - RalfJung:what-is-time, r=joboet 2024-04-15 16:56:14 +01:00
Cargo.toml Replace libc::c_int with core::ffi::c_int 2024-04-14 07:11:51 +00:00