summaryrefslogtreecommitdiff
path: root/test/bbackupd/testbbackupd.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2015-05-04 18:56:29 +0000
committerChris Wilson <chris+github@qwirx.com>2015-05-04 18:56:29 +0000
commitd39fdbcd444ee62ca6118b9bdf8314bc206fbb08 (patch)
tree897c2df00e30b0a66f35c05e75817c349be4c155 /test/bbackupd/testbbackupd.cpp
parent16bfb3c7f6335d988ebf907ac823418a592f58e3 (diff)
Fix system exit codes from tests, so we can use them in the shell.
I needed reliable exit codes to run the tests in a loop to catch an intermittent failure.
Diffstat (limited to 'test/bbackupd/testbbackupd.cpp')
-rw-r--r--test/bbackupd/testbbackupd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bbackupd/testbbackupd.cpp b/test/bbackupd/testbbackupd.cpp
index 3f1c5640..e5df9d32 100644
--- a/test/bbackupd/testbbackupd.cpp
+++ b/test/bbackupd/testbbackupd.cpp
@@ -4295,5 +4295,5 @@ int test(int argc, const char *argv[])
"specified on the command line");
TEST_THAT(kill_running_daemons());
- return (failures == 0 && num_tests_selected > 0);
+ return (failures == 0 && num_tests_selected > 0) ? 0 : 1;
}