summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-01-05 11:58:38 -0800
committerNoah Watkins <noahwatkins@gmail.com>2013-01-05 11:58:38 -0800
commitf6775d9fe59b691fdd376225dc05597e74281ab3 (patch)
tree13d179d97f9e02f045653d329e26b196e3372c8e
parent85824793f72a66059c8c20b50ab6f362feda3cbb (diff)
downloadceph-f6775d9fe59b691fdd376225dc05597e74281ab3.tar.gz
test: test for replica ops perf counterwip-localized-read-tests
Tests that the op_send_replica performance counter exists. Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r--src/test/libcephfs/test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/libcephfs/test.cc b/src/test/libcephfs/test.cc
index d58364a63c4..c42e5f1407d 100644
--- a/src/test/libcephfs/test.cc
+++ b/src/test/libcephfs/test.cc
@@ -810,6 +810,11 @@ TEST_P(MountedTest, ReaddirRCB) {
ASSERT_LE(0, ceph_closedir(cmount, dirp));
}
+TEST_P(MountedTest, HasReplicaOpPerfCounter) {
+ int ops = get_objecter_replica_ops();
+ ASSERT_GE(ops, 0);
+}
+
INSTANTIATE_TEST_CASE_P(ParamMount, MountedTest,
::testing::Values(false, true));