aboutsummaryrefslogtreecommitdiff
path: root/tests/libntp/g_numtohost.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libntp/g_numtohost.cpp')
-rw-r--r--tests/libntp/g_numtohost.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/libntp/g_numtohost.cpp b/tests/libntp/g_numtohost.cpp
deleted file mode 100644
index e04cad8a6833..000000000000
--- a/tests/libntp/g_numtohost.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "g_libntptest.h"
-
-class numtohostTest : public libntptest {
-};
-
-TEST_F(numtohostTest, LoopbackNetNonResolve) {
- /* A loopback address in 127.0.0.0/8 is chosen, and
- * numtohost() should not try to resolve it unless
- * it is 127.0.0.1
- */
-
- u_int32 input = 127*256*256*256 + 1*256 + 1; // 127.0.1.1
-
- EXPECT_STREQ("127.0.1.1", numtohost(htonl(input)));
-}