From 0793a7e1c56bcff97132359127feabcf9969d711 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Sun, 16 Aug 2026 00:09:46 +0700 Subject: [PATCH] test(server): use native timespec bounds --- crates/irtt-server/src/socket_io/ancillary.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/irtt-server/src/socket_io/ancillary.rs b/crates/irtt-server/src/socket_io/ancillary.rs index c70101c..bfe277b 100644 --- a/crates/irtt-server/src/socket_io/ancillary.rs +++ b/crates/irtt-server/src/socket_io/ancillary.rs @@ -638,6 +638,7 @@ mod tests { /// now is structurally fine, and judging it belongs to whoever measures /// with it. #[cfg(target_os = "linux")] + #[cfg_attr(target_env = "musl", allow(deprecated))] #[test] fn a_kernel_timestamp_converts_only_where_it_describes_an_instant() { assert_eq!( @@ -660,10 +661,10 @@ mod tests { None ); assert_eq!( - system_time_from_timespec(TimeSpec::new(i64::MIN, i64::MIN)), + system_time_from_timespec(TimeSpec::new(libc::time_t::MIN, libc::c_long::MIN)), None, "and the extremes convert rather than panic" ); - let _ = system_time_from_timespec(TimeSpec::new(i64::MAX, 999_999_999)); + let _ = system_time_from_timespec(TimeSpec::new(libc::time_t::MAX, 999_999_999)); } } -- 2.54.0