diff options
author | Keith Bostic <keith.bostic@mongodb.com> | 2016-05-02 02:05:08 -0400 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-05-02 16:05:08 +1000 |
commit | b59476e03da04c68622775830c0968a6ab160aaf (patch) | |
tree | 9597ff97c47f1447627c57c1748dfde808be76a7 /test/readonly/readonly.c | |
parent | 701e83d37a3363fa02c54677586dd5b2b097ed43 (diff) | |
download | mongo-b59476e03da04c68622775830c0968a6ab160aaf.tar.gz |
WT-2600: clean up test program includes (#2708)
Clean up test program #includes and add generic handling to memory allocation failures.
Now the test programs include <wt_internal.h>, the local includes
aren't necessary, and it makes lint sad.
Diffstat (limited to 'test/readonly/readonly.c')
-rw-r--r-- | test/readonly/readonly.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/readonly/readonly.c b/test/readonly/readonly.c index 41400da2605..a35e7ee23fc 100644 --- a/test/readonly/readonly.c +++ b/test/readonly/readonly.c @@ -26,20 +26,10 @@ * OTHER DEALINGS IN THE SOFTWARE. */ -#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" +#include <sys/wait.h> + #define HOME_SIZE 512 static char home[HOME_SIZE]; /* Program working dir lock file */ #define HOME_WR_SUFFIX ".WRNOLOCK" /* Writable dir copy no lock file */ |