refs #5949 fix le-cursor-*

git-svn-id: file:///svn/toku/tokudb@52767 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Leif Walsh 2013-04-17 00:01:29 -04:00 committed by Yoni Fogel
parent d9a440ee26
commit 89bf561b6d
3 changed files with 10 additions and 24 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}