about summary refs log tree commit diff
path: root/src/ndisc/tests
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-08-19 10:14:39 +0200
committerMichael Biebl <biebl@debian.org>2020-08-19 10:14:39 +0200
commitc61fd724fffbf1225fdd233a8e450d9a1ddcc849 (patch)
tree43e0feb9d3cf8842022ed94b164324c0603855fc /src/ndisc/tests
parentf86436e83639986f20fb44663edcccf36c3c150c (diff)
parente7b44ef4c80907346ec7492a09c45277459924fc (diff)
Update upstream source from tag 'upstream/1.26.2'
Update to upstream version '1.26.2'
with Debian dir ba5e61f5f737f4e42f743638f9a83bd5cd708a3c
Diffstat (limited to 'src/ndisc/tests')
-rw-r--r--src/ndisc/tests/test-ndisc-fake.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ndisc/tests/test-ndisc-fake.c b/src/ndisc/tests/test-ndisc-fake.c
index b65511e0..254110e4 100644
--- a/src/ndisc/tests/test-ndisc-fake.c
+++ b/src/ndisc/tests/test-ndisc-fake.c
@@ -61,8 +61,8 @@ match_gateway (const NMNDiscData *rdata, guint idx, const char *addr, guint32 ts
 		_a = &_rdata->addresses[_idx]; \
 		\
 		nmtst_assert_ip6_address (&_a->address, (addr)); \
-		g_assert_cmpint (_a->timestamp, >=, _ts); \
 		g_assert_cmpint (_a->timestamp, <=, _ts + 1); \
+		g_assert_cmpint ((int) _a->timestamp, >=, (int) _ts - 1); \
 		g_assert_cmpint (_a->timestamp + _a->lifetime, ==, _ts + (lt)); \
 		g_assert_cmpint (_a->timestamp + _a->preferred, ==, _ts + (pref)); \
 	} G_STMT_END