summaryrefslogtreecommitdiff
path: root/test/recovery/truncated-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/recovery/truncated-log.c')
-rw-r--r--test/recovery/truncated-log.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/test/recovery/truncated-log.c b/test/recovery/truncated-log.c
index a127d8c1c63..c9d73e0cf48 100644
--- a/test/recovery/truncated-log.c
+++ b/test/recovery/truncated-log.c
@@ -1,5 +1,5 @@
/*-
- * Public Domain 2014-2016 MongoDB, Inc.
+ * Public Domain 2014-2017 MongoDB, Inc.
* Public Domain 2008-2014 WiredTiger, Inc.
*
* This is free and unencumbered software released into the public domain.
@@ -130,7 +130,7 @@ usage(void)
/*
* Child process creates the database and table, and then writes data into
- * the table until it is killed by the parent.
+ * the table until it switches into log file 2.
*/
static void fill_db(void)
WT_GCC_FUNC_DECL_ATTRIBUTE((noreturn));
@@ -246,7 +246,7 @@ fill_db(void)
}
if (fclose(fp) != 0)
testutil_die(errno, "fclose");
- abort();
+ exit(0);
/* NOTREACHED */
}
@@ -286,9 +286,7 @@ main(int argc, char *argv[])
testutil_make_work_dir(home);
/*
- * Fork a child to insert as many items. We will then randomly
- * kill the child, run recovery and make sure all items we wrote
- * exist after recovery runs.
+ * Fork a child to do its work. Wait for it to exit.
*/
if ((pid = fork()) < 0)
testutil_die(errno, "fork");