diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2017-01-23 18:05:36 -0500 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-01-24 10:05:36 +1100 |
commit | 75345eabdf5e54aa56fa51134fc53d5ae75aa7d8 (patch) | |
tree | f7bbc90300bdfd3c5eacab81ba551157e89f96e7 | |
parent | d7dc59045b87a37f029c0046082489af557c7018 (diff) | |
download | mongo-75345eabdf5e54aa56fa51134fc53d5ae75aa7d8.tar.gz |
WT-3120 Add error handling to get_key/get_value in a test (#3262)
-rw-r--r-- | test/csuite/wt3120_filesys/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/csuite/wt3120_filesys/main.c b/test/csuite/wt3120_filesys/main.c index a4b830d6a70..09dce624066 100644 --- a/test/csuite/wt3120_filesys/main.c +++ b/test/csuite/wt3120_filesys/main.c @@ -80,13 +80,13 @@ main(int argc, char *argv[]) testutil_check(session->open_cursor(session, opts->uri, NULL, NULL, &cursor)); testutil_check(cursor->next(cursor)); - cursor->get_key(cursor, &kstr); - cursor->get_value(cursor, &vstr); + testutil_check(cursor->get_key(cursor, &kstr)); + testutil_check(cursor->get_value(cursor, &vstr)); testutil_assert(strcmp(kstr, "a") == 0); testutil_assert(strcmp(vstr, "0") == 0); testutil_check(cursor->next(cursor)); - cursor->get_key(cursor, &kstr); - cursor->get_value(cursor, &vstr); + testutil_check(cursor->get_key(cursor, &kstr)); + testutil_check(cursor->get_value(cursor, &vstr)); testutil_assert(strcmp(kstr, "b") == 0); testutil_assert(strcmp(vstr, "1") == 0); testutil_assert(cursor->next(cursor) == WT_NOTFOUND); |