mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
closes[t:2667] quiet recovery-empty
git-svn-id: file:///svn/toku/tokudb@20719 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
26bd6c7688
commit
85fbe869d1
1 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue