Lines Matching defs:serial
20 #include <isc/serial.h>
53 isc_uint32_t serial;
60 serial = dns_update_soaserial(old, dns_updatemethod_increment);
61 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
62 ATF_CHECK_MSG(serial != 0, "serial (%d) should not equal 0", serial);
63 ATF_REQUIRE_EQ(serial, 51);
74 isc_uint32_t serial;
81 serial = dns_update_soaserial(old, dns_updatemethod_increment);
82 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
83 ATF_CHECK(serial != 0);
84 ATF_REQUIRE_EQ(serial, 1u);
94 isc_uint32_t serial;
104 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
105 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
106 ATF_CHECK(serial != 0);
107 ATF_REQUIRE_EQ(serial, mystdtime);
117 isc_uint32_t serial;
127 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
128 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
129 ATF_CHECK(serial != 0);
130 ATF_REQUIRE_EQ(serial, old + 1);
140 isc_uint32_t serial;
150 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
151 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
152 ATF_CHECK(serial != 0);
153 ATF_REQUIRE_EQ(serial, old + 1);
163 isc_uint32_t serial;
174 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
175 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
176 ATF_CHECK(serial != 0);
177 ATF_REQUIRE_EQ(serial, mystdtime);
187 isc_uint32_t serial;
198 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
199 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
200 ATF_CHECK(serial != 0);
201 ATF_REQUIRE_EQ(serial, old + 1);
211 isc_uint32_t serial;
221 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
222 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
223 ATF_CHECK(serial != 0);
224 ATF_REQUIRE_EQ(serial, old + 1);
234 isc_uint32_t serial;
244 serial = dns_update_soaserial(old, dns_updatemethod_unixtime);
245 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
246 ATF_CHECK(serial != 0);
247 ATF_REQUIRE_EQ(serial, old + 1);
256 isc_uint32_t old, serial;
267 serial = dns_update_soaserial(old, dns_updatemethod_date);
268 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
269 ATF_CHECK(serial != 0);
270 ATF_REQUIRE_EQ(serial, 2014040100);
280 isc_uint32_t serial;
290 serial = dns_update_soaserial(old, dns_updatemethod_date);
291 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
292 ATF_CHECK(serial != 0);
293 ATF_REQUIRE_EQ(serial, 2014040101);
303 isc_uint32_t serial;
314 serial = dns_update_soaserial(old, dns_updatemethod_date);
315 ATF_REQUIRE_EQ(isc_serial_lt(old, serial), ISC_TRUE);
316 ATF_CHECK(serial != 0);
317 ATF_REQUIRE_EQ(serial, 2014040101);