Commit 89bf561b authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #5949 fix le-cursor-*


git-svn-id: file:///svn/toku/tokudb@52767 c7de825b-a66e-492c-adef-691d508d4ae1
parent d9a440ee
......@@ -202,11 +202,7 @@ static void
init_logdir(const char *logdir) {
int error;
char cmd[32+strlen(logdir)];
sprintf(cmd, "rm -rf %s", logdir);
error = system(cmd);
assert(error == 0);
toku_os_recursive_delete(logdir);
error = toku_os_mkdir(logdir, 0777);
assert(error == 0);
}
......@@ -225,10 +221,8 @@ test_main (int argc , const char *argv[]) {
assert(error == 0);
const int n = 10;
char ftfile[TOKU_PATH_MAX+1];
toku_path_join(logdir, 2, TOKU_TEST_FILENAME, "ftfile");
create_populate_tree(".", ftfile, n);
test_provdel(".", ftfile, n);
create_populate_tree(".", "ftfile", n);
test_provdel(".", "ftfile", n);
return 0;
}
......@@ -269,11 +269,7 @@ static void
init_logdir(const char *logdir) {
int error;
char cmd[32+strlen(logdir)];
sprintf(cmd, "rm -rf %s", logdir);
error = system(cmd);
assert(error == 0);
toku_os_recursive_delete(logdir);
error = toku_os_mkdir(logdir, 0777);
assert(error == 0);
}
......@@ -292,12 +288,10 @@ test_main (int argc , const char *argv[]) {
assert(error == 0);
const int n = 10;
char ftfile[TOKU_PATH_MAX+1];
toku_path_join(logdir, 2, TOKU_TEST_FILENAME, "ftfile");
create_populate_tree(".", ftfile, n);
test_neg_infinity(ftfile, n);
test_pos_infinity(ftfile, n);
test_between(ftfile, n);
create_populate_tree(".", "ftfile", n);
test_neg_infinity("ftfile", n);
test_pos_infinity("ftfile", n);
test_between("ftfile", n);
return 0;
}
......@@ -183,11 +183,9 @@ test_main (int argc , const char *argv[]) {
char logdir[TOKU_PATH_MAX+1];
toku_path_join(logdir, 2, TOKU_TEST_FILENAME, "logdir");
char ftfile[TOKU_PATH_MAX+1];
toku_path_join(logdir, 2, TOKU_TEST_FILENAME, "ftfile");
run_test(logdir, ftfile, 0);
run_test(logdir, ftfile, 1000);
run_test(logdir, "ftfile", 0);
run_test(logdir, "ftfile", 1000);
return 0;
}
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