diff options
Diffstat (limited to 'test/format/compact.c')
-rw-r--r-- | test/format/compact.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/format/compact.c b/test/format/compact.c index fdfa597e07e..a75ee4f2adf 100644 --- a/test/format/compact.c +++ b/test/format/compact.c @@ -48,8 +48,7 @@ compact(void *arg) /* Open a session. */ conn = g.wts_conn; - if ((ret = conn->open_session(conn, NULL, NULL, &session)) != 0) - die(ret, "connection.open_session"); + testutil_check(conn->open_session(conn, NULL, NULL, &session)); /* * Perform compaction at somewhere under 15 seconds (so we get at @@ -66,11 +65,10 @@ compact(void *arg) if ((ret = session->compact( session, g.uri, NULL)) != 0 && ret != WT_ROLLBACK) - die(ret, "session.compact"); + testutil_die(ret, "session.compact"); } - if ((ret = session->close(session, NULL)) != 0) - die(ret, "session.close"); + testutil_check(session->close(session, NULL)); return (NULL); } |