Merge pull request #110 from Lochnair/fix/server-i686-timespec-test

test(server): use native timespec bounds
This commit was merged in pull request #110.
This commit is contained in:
Nils Andreas Svee authored and GitHub committed 2026-08-16 22:06:29 +07:00
commit e3815fdeed
1 file changed
+3 -2
@@ -638,6 +638,7 @@ mod tests {
/// now is structurally fine, and judging it belongs to whoever measures /// now is structurally fine, and judging it belongs to whoever measures
/// with it. /// with it.
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
#[cfg_attr(target_env = "musl", allow(deprecated))]
#[test] #[test]
fn a_kernel_timestamp_converts_only_where_it_describes_an_instant() { fn a_kernel_timestamp_converts_only_where_it_describes_an_instant() {
assert_eq!( assert_eq!(
@@ -660,10 +661,10 @@ mod tests {
None None
); );
assert_eq!( 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, None,
"and the extremes convert rather than panic" "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));
} }
} }