Hence umount can benefit from custom settings as well.
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
void StoreTestFixture::TearDown()
{
+ if (store) {
+ int r = store->umount();
+ EXPECT_EQ(0, r);
+ rm_r(data_dir);
+ }
// we keep this stuff 'unsafe' out of test case scope to be able to update ANY
// config settings. Hence setting it to 'unsafe' here as test case is closing.
g_conf()._clear_safe_to_start_threads();
::testing::FLAGS_gtest_death_test_style = orig_death_test_style;
orig_death_test_style.clear();
}
- if (store) {
- int r = store->umount();
- EXPECT_EQ(0, r);
- rm_r(data_dir);
- }
}
void StoreTestFixture::SetVal(ConfigProxy& _conf, const char* key, const char* val)