Enable ctest, fix exit status of tests/tests
[libstick.git] / tests / main.cc
index 0b3dd996f1af959242a3b2efa6374e821c79b339..6016b3b511c6c2e707186bfe085c98f4526e0432 100644 (file)
@@ -19,6 +19,8 @@ int main(int argc, char* argv[]) {
     ts.add(auto_ptr<Test::Suite>(new persistence_TestSuite));
 
     Test::TextOutput output(Test::TextOutput::Verbose);
-    return ts.run(output);
+    if (ts.run(output))
+        return EXIT_SUCCESS;
+    return EXIT_FAILURE;
 }