]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os: fix TestLFNIndex test warnings 617/head
authorLoic Dachary <loic@dachary.org>
Sun, 22 Sep 2013 08:46:23 +0000 (10:46 +0200)
committerLoic Dachary <loic@dachary.org>
Sun, 22 Sep 2013 08:46:23 +0000 (10:46 +0200)
Do not ignore system return value. Wrap emacs compile line to 80
characters.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/test/os/TestLFNIndex.cc

index 3947329d99575bc1bcc8deab0322bbc40ef1cae2..b5dd4a4f3d0cae5de81db406a84890f3b1b9ace0 100644 (file)
@@ -167,12 +167,12 @@ public:
 
   virtual void SetUp() {
     ::chmod("PATH", 0700);
-    ::system("rm -fr PATH");
-    ::mkdir("PATH", 0700);
+    ASSERT_EQ(0, ::system("rm -fr PATH"));
+    ASSERT_EQ(0, ::mkdir("PATH", 0700));
   }
 
   virtual void TearDown() {
-    ::system("rm -fr PATH");
+    ASSERT_EQ(0, ::system("rm -fr PATH"));
   }
 };
 
@@ -441,6 +441,11 @@ int main(int argc, char **argv) {
   }
 }
 
-// Local Variables:
-// compile-command: "cd ../.. ; make unittest_lfnindex ; valgrind --tool=memcheck ./unittest_lfnindex # --gtest_filter=TestLFNIndex.* --log-to-stderr=true --debug-filestore=20"
-// End:
+/* 
+ * Local Variables:
+ * compile-command: "cd ../.. ; 
+ *   make unittest_lfnindex && 
+ *   valgrind --tool=memcheck ./unittest_lfnindex \
+ *   # --gtest_filter=TestLFNIndex.* --log-to-stderr=true --debug-filestore=20"
+ * End:
+ */