Merge pull request #1673 from ceph/wip-stress-watch

ceph_test_stress_watch: test over cache pool

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
This commit is contained in:
Samuel Just 2014-04-14 16:12:31 -07:00
commit 9f6f7d35a1

View 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();