]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/rocksdb/db/options_file_test.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / rocksdb / db / options_file_test.cc
index 7ad8464277904bf53447f1cc5ac296151052f603..eb02e6ca4f13857d61834bd686ad2811e466c98f 100644 (file)
@@ -59,13 +59,13 @@ void VerifyOptionsFileName(
     }
   }
 }
-}  // namespace
+}  // anonymous namespace
 
 TEST_F(OptionsFileTest, NumberOfOptionsFiles) {
   const int kReopenCount = 20;
   Options opt;
   opt.create_if_missing = true;
-  DestroyDB(dbname_, opt);
+  ASSERT_OK(DestroyDB(dbname_, opt));
   std::unordered_set<std::string> filename_history;
   DB* db;
   for (int i = 0; i < kReopenCount; ++i) {
@@ -102,6 +102,7 @@ TEST_F(OptionsFileTest, OptionsFileName) {
 
 int main(int argc, char** argv) {
 #if !(defined NDEBUG) || !defined(OS_WIN)
+  ROCKSDB_NAMESPACE::port::InstallStackTraceHandler();
   ::testing::InitGoogleTest(&argc, argv);
   return RUN_ALL_TESTS();
 #else