summaryrefslogtreecommitdiff
path: root/test/recovery/random-abort.c
diff options
context:
space:
mode:
authorAlex Gorrod <alexander.gorrod@mongodb.com>2016-05-23 13:13:54 -0400
committersueloverso <sue@mongodb.com>2016-05-23 13:13:54 -0400
commit9768c2db0baa654ed2953bf7a308bd7f7e2de7d6 (patch)
treea64ee76bef7d02acd5f6812fbfa15d9afc22bf24 /test/recovery/random-abort.c
parent0f7ae730d9ab28aaa51a938075502f639947d26f (diff)
downloadmongo-9768c2db0baa654ed2953bf7a308bd7f7e2de7d6.tar.gz
WT-2554 Add initial C test framework. (#2655)
* WT-2554 Add initial C test framework. With a few sample applications. Need to do further work to cleanup the same applications and share as much code/style as possible. * WT-2554 Fixup build errors. * Fix compiler warning. * Cleanup * Ensure each test runs in a different directory. * Update C test suite names and add copyright. * Move test code into subdirectories. * Replace test_util.i with a real utility library now that we have one. Nothing needs to be an inline function. Mostly cherry picked from 7c18420. * Use WiredTiger getopt in C test suite for platform portability. * Add a header comment to each test case. * Add a C test suite entry auto generator * Style, KNF * Implement review feedback. * Build test/utility library on Windows * Add comment to script. Fix a printf.
Diffstat (limited to 'test/recovery/random-abort.c')
-rw-r--r--test/recovery/random-abort.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/test/recovery/random-abort.c b/test/recovery/random-abort.c
index cd7d1b08708..33597245966 100644
--- a/test/recovery/random-abort.c
+++ b/test/recovery/random-abort.c
@@ -26,19 +26,10 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
+#include "test_util.h"
+
#include <sys/wait.h>
-#include <errno.h>
#include <signal.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#ifndef _WIN32
-#include <unistd.h>
-#endif
-
-#include <wiredtiger.h>
-
-#include "test_util.i"
static char home[512]; /* Program working dir */
static const char *progname; /* Program name */