Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156675818
D26445.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
811 B
Referenced Files
None
Subscribers
None
D26445.diff
View Options
Index: head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c
===================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c
+++ head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c
@@ -195,8 +195,10 @@
ATF_REQUIRE(setitimer(ITIMER_REAL, &it, &ot) == 0);
#ifdef __FreeBSD__
- if (ot.it_value.tv_sec == 4 && ot.it_value.tv_usec == 3)
- atf_tc_fail("setitimer(2) did not return remaining time");
+ ATF_REQUIRE_MSG(ot.it_value.tv_sec < 4 ||
+ ot.it_value.tv_sec == 4 && ot.it_value.tv_usec <= 3,
+ "setitimer(2) returned invalid it_value: %jd %jd",
+ (intmax_t)ot.it_value.tv_sec, (intmax_t)ot.it_value.tv_usec);
#else
if (ot.it_value.tv_sec != 4 || ot.it_value.tv_usec != 3)
atf_tc_fail("setitimer(2) did not store old values");
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 3:02 PM (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33133972
Default Alt Text
D26445.diff (811 B)
Attached To
Mode
D26445: fix setitimer test for returned it_value
Attached
Detach File
Event Timeline
Log In to Comment