|
|
@ -155,7 +155,7 @@ main(void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(r, test[i]) != 0) {
|
|
|
|
if (strcmp(r, test[i]) != 0) {
|
|
|
|
fprintf(stderr, "ERROR: Removed incorrect node (%s != %s)\n", r, test[i]);
|
|
|
|
fprintf(stderr, "ERROR: Removed incorrect node (%s != %s)\n", (char *)r, test[i]);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -175,7 +175,7 @@ main(void)
|
|
|
|
/* Expected replacement. */
|
|
|
|
/* Expected replacement. */
|
|
|
|
if (d == true && (r == NULL || strcmp(r, test[i]) != 0)) {
|
|
|
|
if (d == true && (r == NULL || strcmp(r, test[i]) != 0)) {
|
|
|
|
fprintf(stderr, "ERROR: Incorrect previous value: %s != %s\n",
|
|
|
|
fprintf(stderr, "ERROR: Incorrect previous value: %s != %s\n",
|
|
|
|
test[i], r);
|
|
|
|
test[i], (char *)r);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (ck_hs_set(&hs, h, test[i], &r) == false) {
|
|
|
|
if (ck_hs_set(&hs, h, test[i], &r) == false) {
|
|
|
@ -184,7 +184,7 @@ main(void)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (strcmp(r, test[i]) != 0) {
|
|
|
|
if (strcmp(r, test[i]) != 0) {
|
|
|
|
fprintf(stderr, "ERROR: Invalid pointer: %s != %s\n", r, test[i]);
|
|
|
|
fprintf(stderr, "ERROR: Invalid pointer: %s != %s\n", (char *)r, test[i]);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
exit(EXIT_FAILURE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|