diff options
author | Keith Bostic <keith@wiredtiger.com> | 2012-05-28 11:31:55 +0000 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2012-05-28 11:31:55 +0000 |
commit | 0c919a6266ee115542e899978662e89a18a0829b (patch) | |
tree | 17827b3e1a3c4a7b4273b394c2d6bac25b003ba4 /test/fops | |
parent | ca408b3b2da110360391705a7ae91ea9a0715196 (diff) | |
download | mongo-0c919a6266ee115542e899978662e89a18a0829b.tar.gz |
Don't verify/sync after the file ops runs, the last operation may be a
drop.
Cheapen test to ignore complaints about missing files, test for ENOENT
instead of a string comparison on the error message.
Diffstat (limited to 'test/fops')
-rw-r--r-- | test/fops/t.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/test/fops/t.c b/test/fops/t.c index f8c298e3afc..07070ef403a 100644 --- a/test/fops/t.c +++ b/test/fops/t.c @@ -122,18 +122,8 @@ wt_connect(char *config_open) static void wt_shutdown(void) { - WT_SESSION *session; int ret; - if ((ret = conn->open_session(conn, NULL, NULL, &session)) != 0) - die("conn.session", ret); - - if ((ret = session->verify(session, FNAME, NULL)) != 0) - die("session.verify", ret); - - if ((ret = session->sync(session, FNAME, NULL)) != 0) - die("session.sync", ret); - if ((ret = conn->close(conn, NULL)) != 0) die("conn.close", ret); } @@ -154,9 +144,8 @@ handle_error(WT_EVENT_HANDLER *handler, int error, const char *errmsg) UNUSED(handler); UNUSED(error); - /* Ignore complaints about truncation of missing files. */ - if (strcmp(errmsg, - "session.truncate: __wt: No such file or directory") == 0) + /* Ignore complaints about missing files. */ + if (error == ENOENT) return (0); return (fprintf(stderr, "%s\n", errmsg) < 0 ? -1 : 0); } |