[Git][NTPsec/ntpsec][freebsd-test] Fix FreeBSD test failure

Richard Laager (@rlaager) gitlab at mg.gitlab.com
Fri May 13 00:39:43 UTC 2022



Richard Laager pushed to branch freebsd-test at NTPsec / ntpsec


Commits:
7d923e07 by Richard Laager at 2022-05-12T19:38:15-05:00
Fix FreeBSD test failure

- - - - -


1 changed file:

- tests/libntp/lfpfunc.c


Changes:

=====================================
tests/libntp/lfpfunc.c
=====================================
@@ -227,7 +227,7 @@ TEST(lfpfunc, Absolute) {
 	// value cannot be negated, or, to be more precise, the
 	// negation reproduces the original pattern.
 	l_fp minVal = lfpinit_u(0x80000000, 0x00000000);
-	TEST_ASSERT_EQUAL(-1, l_fp_signum(minVal));
+	TEST_ASSERT_EQUAL((l_fp)-1, l_fp_signum(minVal));
 
 	l_fp minAbs = l_fp_abs(minVal);
 	TEST_ASSERT_EQUAL(minVal, minAbs);



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/7d923e075cda7446722e92a3fcd8e6cd3dea3c83

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/7d923e075cda7446722e92a3fcd8e6cd3dea3c83
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20220513/82ab4d52/attachment.htm>


More information about the vc mailing list