diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-04-14 08:34:06 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-04-14 08:34:06 -0400 |
commit | f776f9bf9f7277f51edb9efbd30e1fd6f669dc01 (patch) | |
tree | a89854683ff7fb3cf44da6ec2b5c71bdbd380c78 /test | |
parent | 5ed5981b93dcdbd1164746d0e23f0a95bc02f8b3 (diff) | |
download | mongo-f776f9bf9f7277f51edb9efbd30e1fd6f669dc01.tar.gz |
Fix the interrupt code to clean up the correct directory.
Diffstat (limited to 'test')
-rw-r--r-- | test/thread/t.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/thread/t.c b/test/thread/t.c index ba096070813..9214bfe748f 100644 --- a/test/thread/t.c +++ b/test/thread/t.c @@ -189,7 +189,6 @@ wt_connect(char *config_open) #else #define CMD "rm -rf WT_TEST && mkdir WT_TEST" #endif - if ((ret = system(CMD)) != 0) die("directory cleanup call failed", ret); @@ -236,8 +235,14 @@ shutdown(void) { int ret; - if ((ret = system("rm -f WiredTiger* wt.*")) != 0) - die("system cleanup call failed", ret); +#undef CMD +#ifdef _WIN32 +#define CMD "rd /s /q WT_TEST" +#else +#define CMD "rm -rf WT_TEST" +#endif + if ((ret = system(CMD)) != 0) + die("directory cleanup call failed", ret); } static int |