Commit 5f48e066 authored by Yoni Fogel's avatar Yoni Fogel

check error from system() to be gcc4 clean

git-svn-id: file:///svn/toku/tokudb@19948 c7de825b-a66e-492c-adef-691d508d4ae1
parent f3eba4c8
...@@ -192,9 +192,11 @@ int test_main (int argc, const char *argv[]) { ...@@ -192,9 +192,11 @@ int test_main (int argc, const char *argv[]) {
const char* directory = argv[0]; const char* directory = argv[0];
char unlink_all[strlen(directory)+20]; char unlink_all[strlen(directory)+20];
snprintf(unlink_all, strlen(directory)+20, "rm -rf %s", directory); snprintf(unlink_all, strlen(directory)+20, "rm -rf %s", directory);
system(unlink_all); int r;
int r = toku_os_mkdir(directory, 0755); r = system(unlink_all);
assert(r==0); CKERR(r);
r = toku_os_mkdir(directory, 0755);
CKERR(r);
int templen = strlen(directory)+15; int templen = strlen(directory)+15;
char template[templen]; char template[templen];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment