svn commit: r366727 - head/contrib/netbsd-tests/lib/libc/sys

Adrian Chadd adrian at FreeBSD.org
Thu Oct 15 14:55:08 UTC 2020


Author: adrian
Date: Thu Oct 15 14:55:07 2020
New Revision: 366727
URL: https://svnweb.freebsd.org/changeset/base/366727

Log:
  [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

Modified:
  head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c

Modified: head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c	Thu Oct 15 14:37:51 2020	(r366726)
+++ head/contrib/netbsd-tests/lib/libc/sys/t_getitimer.c	Thu Oct 15 14:55:07 2020	(r366727)
@@ -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


More information about the svn-src-all mailing list