mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
[tests] Fix itimer test warning-errors on gcc-6.4
This fixes a "suggested parens" compile warning-into-error that shows up on gcc-6.4. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D26789
This commit is contained in:
parent
acb4cf9d6c
commit
cdd9aa250e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366727
|
@ -195,8 +195,8 @@ ATF_TC_BODY(setitimer_old, tc)
|
|||
ATF_REQUIRE(setitimer(ITIMER_REAL, &it, &ot) == 0);
|
||||
|
||||
#ifdef __FreeBSD__
|
||||
ATF_REQUIRE_MSG(ot.it_value.tv_sec < 4 ||
|
||||
ot.it_value.tv_sec == 4 && ot.it_value.tv_usec <= 3,
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue