]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Fixed integer constants so they work on 32-bit systems, which have 32-bit time_t
authorLinux Karlsson <karlsson@ntp.org>
Tue, 27 Jul 2010 18:53:27 +0000 (14:53 -0400)
committerLinux Karlsson <karlsson@ntp.org>
Tue, 27 Jul 2010 18:53:27 +0000 (14:53 -0400)
bk: 4c4f2b27WAftonwqzI_brTPBUwLNnQ

tests/sntp/data/kod-test-blanks
tests/sntp/data/kod-test-correct
tests/sntp/kodFile.cpp

index 2cb15db09036bdb7bb60378cd851cd39f718124b..5c20e7271e57657889233befb27a73ee9a9a7a72 100644 (file)
@@ -1,5 +1,5 @@
 
-0000001234567890 DENY 192.0.2.5
+0000000012345678 DENY 192.0.2.5
 
 0000000000000fff RSTR 192.0.2.100
 000000000000abcd DENY example.com
index 1f31379ed8cad940d56cd5a3cc3221858d2eb5d5..8a3e230ea0f99de3ac1ab2bb8cf3b49b8020a905 100644 (file)
@@ -1,2 +1,2 @@
-0000001234567890 DENY 192.0.2.5
+0000000012345678 DENY 192.0.2.5
 0000000000000fff RSTR 192.0.2.100
index b669d34583b98bdeeb99988896f5403977ef793c..4cd9748377d7fa134253e54e598eaa04cc925a02 100644 (file)
@@ -96,7 +96,7 @@ TEST_F(kodFileTest, ReadCorrectFile) {
        ASSERT_EQ(1, search_entry("192.0.2.5", &res));
        EXPECT_STREQ("DENY", res->type);
        EXPECT_STREQ("192.0.2.5", res->hostname);
-       EXPECT_EQ(0x1234567890, res->timestamp);
+       EXPECT_EQ(0x12345678, res->timestamp);
 
        ASSERT_EQ(1, search_entry("192.0.2.100", &res));
        EXPECT_STREQ("RSTR", res->type);
@@ -114,7 +114,7 @@ TEST_F(kodFileTest, ReadFileWithBlankLines) {
        ASSERT_EQ(1, search_entry("192.0.2.5", &res));
        EXPECT_STREQ("DENY", res->type);
        EXPECT_STREQ("192.0.2.5", res->hostname);
-       EXPECT_EQ(0x1234567890, res->timestamp);
+       EXPECT_EQ(0x12345678, res->timestamp);
 
        ASSERT_EQ(1, search_entry("192.0.2.100", &res));
        EXPECT_STREQ("RSTR", res->type);