summaryrefslogtreecommitdiff
path: root/test/packing/intpack-test3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/packing/intpack-test3.c')
-rw-r--r--test/packing/intpack-test3.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/packing/intpack-test3.c b/test/packing/intpack-test3.c
index 2ebc01f9e2e..328b45d1bf7 100644
--- a/test/packing/intpack-test3.c
+++ b/test/packing/intpack-test3.c
@@ -26,9 +26,9 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "wt_internal.h" /* For __wt_XXX */
+#include "test_util.i"
-#include <assert.h>
+void (*custom_die)(void) = NULL;
void test_value(int64_t);
void test_spread(int64_t, int64_t, int64_t);
@@ -43,11 +43,12 @@ test_value(int64_t val)
size_t used_len;
sinput = val;
+ soutput = 0; /* Make GCC happy. */
p = buf;
- assert(__wt_vpack_int(&p, sizeof(buf), sinput) == 0);
+ testutil_check(__wt_vpack_int(&p, sizeof(buf), sinput));
used_len = (size_t)(p - buf);
cp = buf;
- assert(__wt_vunpack_int(&cp, used_len, &soutput) == 0);
+ testutil_check(__wt_vunpack_int(&cp, used_len, &soutput));
/* Ensure we got the correct value back */
if (sinput != soutput) {
fprintf(stderr, "mismatch %" PRIu64 ", %" PRIu64 "\n",
@@ -69,10 +70,9 @@ test_value(int64_t val)
uinput = (uint64_t)val;
p = buf;
- assert(__wt_vpack_uint(&p, sizeof(buf), uinput) == 0);
+ testutil_check(__wt_vpack_uint(&p, sizeof(buf), uinput));
cp = buf;
- assert(__wt_vunpack_uint(
- &cp, sizeof(buf), &uoutput) == 0);
+ testutil_check(__wt_vunpack_uint(&cp, sizeof(buf), &uoutput));
/* Ensure we got the correct value back */
if (sinput != soutput) {
fprintf(stderr, "mismatch %" PRIu64 ", %" PRIu64 "\n",