diff options
author | Yanqin Jin <yanqin@fb.com> | 2021-03-18 21:51:21 -0700 |
---|---|---|
committer | Facebook GitHub Bot <facebook-github-bot@users.noreply.github.com> | 2021-03-18 21:52:48 -0700 |
commit | 7ee41a5d255e983c16fc90f6ae4218089d790e8f (patch) | |
tree | 8fe06d38862d9a67b34563d9020009a5d100d227 /utilities | |
parent | 576cff11da65c29ed2d0cd70734cf760d28e39ea (diff) |
Fix a test failure when built with ASSERT_STATUS_CHECKED=1 (#8075)
Summary:
As title.
Test plan
ASSERT_STATUS_CHECKED=1 make -j20 backupable_db_test error_handler_fs_test
./backupable_db_test
./error_handler_fs_test
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8075
Reviewed By: zhichao-cao
Differential Revision: D27173832
Pulled By: riversand963
fbshipit-source-id: 37dac50f7c89127804ff2572abddd4174642de30
Diffstat (limited to 'utilities')
-rw-r--r-- | utilities/backupable/backupable_db_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities/backupable/backupable_db_test.cc b/utilities/backupable/backupable_db_test.cc index 0fe534548..fd9d5ad52 100644 --- a/utilities/backupable/backupable_db_test.cc +++ b/utilities/backupable/backupable_db_test.cc @@ -976,7 +976,7 @@ TEST_F(BackupableDBTest, FileCollision) { // If the db directory has been cleaned up, it is sensitive to file // collision. - DestroyDB(dbname_, options_); + ASSERT_OK(DestroyDB(dbname_, options_)); // open with old backup OpenDBAndBackupEngine(false /* destroy_old_data */, false /* dummy */, @@ -995,7 +995,7 @@ TEST_F(BackupableDBTest, FileCollision) { CloseDBAndBackupEngine(); // delete old data - DestroyDB(dbname_, options_); + ASSERT_OK(DestroyDB(dbname_, options_)); } } |