diff options
author | Thomas Haller <thaller@redhat.com> | 2020-07-07 22:28:44 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-07-07 22:32:35 +0200 |
commit | a5133e708e85e02b9cbf199c0840e00f118b59c7 (patch) | |
tree | fa3e8689a7d7dfd04f86b7a2c63e173b25d6c0f0 | |
parent | 6feab75447468a90b3cbb43df0fce45595a691ac (diff) | |
download | NetworkManager-a5133e708e85e02b9cbf199c0840e00f118b59c7.tar.gz |
ndisc/tests: relax assertion in "test-ndisc-fake.c"
Still assertion failures:
ERROR:../src/ndisc/tests/test-ndisc-fake.c:375:test_preference_changed_cb: assertion failed (_a->timestamp >= _ts): (9 >= 10)
-rw-r--r-- | src/ndisc/tests/test-ndisc-fake.c | 2 |
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 b65511e01e..254110e4c7 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 |