|
|
@ -150,7 +150,8 @@ run_test(unsigned int is, unsigned int ad)
|
|
|
|
if (i & 1) {
|
|
|
|
if (i & 1) {
|
|
|
|
if (ck_rhs_put_unique(&hs[j], h, test[i]) == false)
|
|
|
|
if (ck_rhs_put_unique(&hs[j], h, test[i]) == false)
|
|
|
|
ck_error("ERROR [%zu]: Failed to insert unique (%s)\n", j, test[i]);
|
|
|
|
ck_error("ERROR [%zu]: Failed to insert unique (%s)\n", j, test[i]);
|
|
|
|
} else if (ck_rhs_apply(&hs[j], h, test[i], test_unique, (char *)test[i]) == false) {
|
|
|
|
} else if (ck_rhs_apply(&hs[j], h, test[i], test_unique,
|
|
|
|
|
|
|
|
(void *)(uintptr_t)test[i]) == false) {
|
|
|
|
ck_error("ERROR: Failed to apply for insertion.\n");
|
|
|
|
ck_error("ERROR: Failed to apply for insertion.\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +162,8 @@ run_test(unsigned int is, unsigned int ad)
|
|
|
|
ck_error("ERROR: Failed to remove apply.\n");
|
|
|
|
ck_error("ERROR: Failed to remove apply.\n");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ck_rhs_apply(&hs[j], h, test[i], test_negative, (char *)test[i]) == false)
|
|
|
|
if (ck_rhs_apply(&hs[j], h, test[i], test_negative,
|
|
|
|
|
|
|
|
(void *)(uintptr_t)test[i]) == false)
|
|
|
|
ck_error("ERROR: Failed to apply.\n");
|
|
|
|
ck_error("ERROR: Failed to apply.\n");
|
|
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -268,8 +270,10 @@ run_test(unsigned int is, unsigned int ad)
|
|
|
|
ck_error("ERROR [%u]: Invalid &hs[j]: %s != %s\n", (char *)r, test[i], is);
|
|
|
|
ck_error("ERROR [%u]: Invalid &hs[j]: %s != %s\n", (char *)r, test[i], is);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/* Attempt in-place mutation. */
|
|
|
|
/* Attempt in-place mutation. */
|
|
|
|
if (ck_rhs_apply(&hs[j], h, test[i], test_ip, (void *)test[i]) == false)
|
|
|
|
if (ck_rhs_apply(&hs[j], h, test[i], test_ip,
|
|
|
|
|
|
|
|
(void *)(uintptr_t)test[i]) == false) {
|
|
|
|
ck_error("ERROR [%u]: Failed to apply: %s != %s\n", is, (char *)r, test[i]);
|
|
|
|
ck_error("ERROR [%u]: Failed to apply: %s != %s\n", is, (char *)r, test[i]);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
d = ck_rhs_get(&hs[j], h, test[i]) != NULL;
|
|
|
|
d = ck_rhs_get(&hs[j], h, test[i]) != NULL;
|
|
|
|
if (d == false)
|
|
|
|
if (d == false)
|
|
|
|