[master] db40993 Try to make space for bad floating-point round-off in test.
Poul-Henning Kamp
phk at FreeBSD.org
Sat Nov 18 22:00:07 UTC 2017
commit db409931e991b5a822456b045ca1fafb36a98cca
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sat Nov 18 21:59:17 2017 +0000
Try to make space for bad floating-point round-off in test.
diff --git a/lib/libvarnish/vnum.c b/lib/libvarnish/vnum.c
index f01aa67..c5e03cf 100644
--- a/lib/libvarnish/vnum.c
+++ b/lib/libvarnish/vnum.c
@@ -361,7 +361,7 @@ main(int argc, char *argv[])
++ec;
}
d1 = VNUM_duration(" 365.24219d ");
- if (d1 != 31556925.216) {
+ if (d1 < 31556925.2159 || d1 > 31556925.216) {
printf("%s: VNUM_Duration() wrong: %g\n", *argv, d1);
++ec;
}
More information about the varnish-commit
mailing list