]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/objectstore: s/TearDownTestCase/TearDownTestSuite/
authorKefu Chai <kchai@redhat.com>
Wed, 2 Jun 2021 09:38:49 +0000 (17:38 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 4 Jun 2021 06:07:23 +0000 (14:07 +0800)
TearDownTestCase is deprecated by GTest. let's use the new API instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/Allocator_aging_fragmentation.cc

index 90d42e9f075a85e8125bab614553f1f8f0c10305..78a0047a35da4b6d6021052c3c635c023e132d2c 100755 (executable)
@@ -96,7 +96,7 @@ public:
   void do_free(uint64_t low_mark);
   uint32_t free_random();
 
-  static void TearDownTestCase();
+  static void TearDownTestSuite();
 };
 
 struct test_result {
@@ -299,7 +299,8 @@ void AllocTest::doAgingTest(
   r.frag_score += frag_score;
 }
 
-void AllocTest::TearDownTestCase() {
+void AllocTest::TearDownTestSuite()
+{
   std::cout << "Summary: " << std::endl;
   for (auto& r: results_per_allocator) {
     std::cout << r.first <<