]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph_test_stress_watch: test over cache pool 1673/head
authorSage Weil <sage@inktank.com>
Mon, 14 Apr 2014 22:57:28 +0000 (15:57 -0700)
committerSage Weil <sage@inktank.com>
Mon, 14 Apr 2014 22:57:28 +0000 (15:57 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/test/test_stress_watch.cc

index 1b8f1904d411c1163b5ddbd8c6c03a7dd8bfcffe..52b480b4576c260bfe5f8c304b4035c9f8e76254 100644 (file)
@@ -14,6 +14,8 @@
 #include <iostream>
 #include <string>
 
+#include "test/librados/TestCase.h"
+
 
 using namespace librados;
 using ceph::buffer;
@@ -54,7 +56,13 @@ struct WatcherUnwatcher : public Thread {
     return NULL;
   }
 };
-TEST(WatchStress, Stress1) {
+
+typedef RadosTestParamPP WatchStress;
+
+INSTANTIATE_TEST_CASE_P(WatchStressTests, WatchStress,
+                       ::testing::Values("", "cache"));
+
+TEST_P(WatchStress, Stress1) {
   ASSERT_EQ(0, sem_init(&sem, 0, 0));
   Rados ncluster;
   std::string pool_name = get_temp_pool_name();