summaryrefslogtreecommitdiff
path: root/server/tests
diff options
context:
space:
mode:
authorThomas Markwalder <tmark@isc.org>2017-12-01 09:13:26 -0500
committerThomas Markwalder <tmark@isc.org>2017-12-01 09:13:26 -0500
commitabacf8ad0d8844685e5cd76645a34ef2b8da3253 (patch)
treec2d01ae49a35350ee58eff231b67a0a889024143 /server/tests
parentecf9f77b988f613d773603427d19e34c1c60f98a (diff)
downloadisc-dhcp-abacf8ad0d8844685e5cd76645a34ef2b8da3253.tar.gz
[master] Use 0 instead of -1 to indicate empty heap index
Merges in rt46719.
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/mdb6_unittest.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/tests/mdb6_unittest.c b/server/tests/mdb6_unittest.c
index ff3aaef0..f1caca9c 100644
--- a/server/tests/mdb6_unittest.c
+++ b/server/tests/mdb6_unittest.c
@@ -65,8 +65,13 @@ ATF_TC_BODY(iaaddr_basic, tc)
if (iaaddr->state != FTS_FREE) {
atf_tc_fail("ERROR: bad state %s:%d", MDL);
}
- if (iaaddr->heap_index != -1) {
- atf_tc_fail("ERROR: bad heap_index %s:%d", MDL);
+ if (iaaddr->active_index != 0) {
+ atf_tc_fail("ERROR: bad active_index :%d %s:%d",
+ iaaddr->active_index, MDL);
+ }
+ if (iaaddr->inactive_index != 0) {
+ atf_tc_fail("ERROR: bad inactive_index %d %s:%d",
+ iaaddr->inactive_index, MDL);
}
if (iasubopt_reference(&iaaddr_copy, iaaddr, MDL) != ISC_R_SUCCESS) {
atf_tc_fail("ERROR: iasubopt_reference() %s:%d", MDL);