From 0c919a6266ee115542e899978662e89a18a0829b Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Mon, 28 May 2012 11:31:55 +0000 Subject: 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. --- test/fops/t.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'test/fops') 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); } -- cgit v1.2.1