]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/rados-api: move TestAlarm into test.h
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 10 Aug 2011 18:24:22 +0000 (11:24 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Wed, 10 Aug 2011 18:24:22 +0000 (11:24 -0700)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/test/rados-api/aio.cc
src/test/rados-api/test.h

index 1fa8becaf952f7f2dcedec31f844d3fbd3ab25df..14f4807e95162f75f1a2a5bfa25368cb1c6c31c8 100644 (file)
@@ -69,17 +69,6 @@ public:
   bool m_safe;
 };
 
-class TestAlarm
-{
-public:
-  TestAlarm() {
-    alarm(360);
-  }
-  ~TestAlarm() {
-    alarm(0);
-  }
-};
-
 void set_completion_complete(rados_completion_t cb, void *arg)
 {
   AioTestData *test = (AioTestData*)arg;
index 95e18546dd498ddf23e6816e982f3bdfb9a46459..01022b8a03fe50764c9f5a4c31a7281d64fdd0c9 100644 (file)
@@ -18,6 +18,7 @@
 #include "include/rados/librados.h"
 
 #include <string>
+#include <unistd.h>
 
 std::string get_temp_pool_name();
 
@@ -25,4 +26,15 @@ std::string create_one_pool(const std::string &pool_name, rados_t *cluster);
 
 int destroy_one_pool(const std::string &pool_name, rados_t *cluster);
 
+class TestAlarm
+{
+public:
+  TestAlarm() {
+    alarm(360);
+  }
+  ~TestAlarm() {
+    alarm(0);
+  }
+};
+
 #endif