summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/tests/sandbox/smeartest.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/tests/sandbox/smeartest.c')
-rw-r--r--contrib/ntp/tests/sandbox/smeartest.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/ntp/tests/sandbox/smeartest.c b/contrib/ntp/tests/sandbox/smeartest.c
index a8ee210..cc4e503 100644
--- a/contrib/ntp/tests/sandbox/smeartest.c
+++ b/contrib/ntp/tests/sandbox/smeartest.c
@@ -2,6 +2,7 @@
#include <ntp.h>
#include <ntp_fp.h>
+#include <ntp_assert.h>
/*
* we want to test a refid format of:
@@ -125,11 +126,14 @@ ltor(l_fp l)
}
+int
main()
{
l_fp l;
int rc;
+ init_lib();
+
rtol(0xfe800000);
rtol(0xfe800001);
rtol(0xfe8ffffe);
@@ -167,6 +171,8 @@ main()
rtoltor(0xfe7fffff);
rc = atolfp("-.932087", &l);
+ INSIST(1 == rc);
+
ltor(l);
rtol(0xfec458b0);
printf("%x -> %d.%d.%d.%d\n",
OpenPOWER on IntegriCloud