Fix the "IO error" in auto_roll_logger_test

Summary:

I missed InitTestDb() in one of my tess. InitTestDb() initializes the test directory, without which the test will throw IO error.

This problem didn't occur before because I've already run the tests before so the test directory is already there.

Test Plan:

Reviewers: dhruba

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Kai Liu 2013-02-19 00:09:16 -08:00
parent ae09544cd6
commit 45f0030458
2 changed files with 3 additions and 0 deletions

View File

@ -55,8 +55,10 @@ TESTS = \
version_set_test \
reduce_levels_test \
write_batch_test \
auto_roll_logger_test \
filelock_test
TOOLS = \
manifest_dump \
sst_dump \

View File

@ -119,6 +119,7 @@ uint64_t AutoRollLoggerTest::RollLogFileByTimeTest(
}
TEST(AutoRollLoggerTest, RollLogFileBySize) {
InitTestDb();
size_t log_max_size = 1024 * 5;
AutoRollLogger* logger = new AutoRollLogger(