From f6775d9fe59b691fdd376225dc05597e74281ab3 Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Sat, 5 Jan 2013 11:58:38 -0800 Subject: test: test for replica ops perf counter Tests that the op_send_replica performance counter exists. Signed-off-by: Noah Watkins --- src/test/libcephfs/test.cc | 5 +++++ 1 file changed, 5 insertions(+) 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)); -- cgit v1.2.1