closes[t:2667] quiet recovery-empty

git-svn-id: file:///svn/toku/tokudb@20719 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
Rich Prohaska 2013-04-16 23:59:16 -04:00 committed by Yoni Fogel
parent 26bd6c7688
commit 85fbe869d1

View file

@ -20,6 +20,14 @@ run_test(void) {
r = toku_logger_open(TESTDIR, logger); assert(r == 0); r = toku_logger_open(TESTDIR, logger); assert(r == 0);
r = toku_logger_close(&logger); assert(r == 0); r = toku_logger_close(&logger); assert(r == 0);
if (!verbose) {
// redirect stderr
int devnul = open(DEV_NULL_FILE, O_WRONLY);
assert(devnul >= 0);
r = toku_dup2(devnul, fileno(stderr)); assert(r == fileno(stderr));
r = close(devnul); assert(r == 0);
}
// run recovery // run recovery
r = tokudb_recover(TESTDIR, TESTDIR, 0, 0, NULL, NULL, 0); r = tokudb_recover(TESTDIR, TESTDIR, 0, 0, NULL, NULL, 0);
assert(r == DB_RUNRECOVERY); assert(r == DB_RUNRECOVERY);
@ -28,7 +36,8 @@ run_test(void) {
} }
int int
test_main(int UU(argc), const char *UU(argv[])) { test_main(int argc, const char *argv[]) {
default_parse_args(argc, argv);
int r; int r;
r = run_test(); r = run_test();
return r; return r;