diff options
author | Arne H Juul <arnej@yahoo-inc.com> | 2016-06-30 13:28:08 +0200 |
---|---|---|
committer | Arne H Juul <arnej@yahoo-inc.com> | 2016-06-30 15:02:12 +0200 |
commit | 419578bee89068645051556ea591ddeda34aaa85 (patch) | |
tree | 4d3aad651a21c440511479c15142ecb071fb5725 /fastos/src/tests/thread_bounce_test.cpp | |
parent | ec03bb7d9f40d4cc4ea5a66bd2553588a6195f0b (diff) |
return 0 only if all ok
Diffstat (limited to 'fastos/src/tests/thread_bounce_test.cpp')
-rw-r--r-- | fastos/src/tests/thread_bounce_test.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/fastos/src/tests/thread_bounce_test.cpp b/fastos/src/tests/thread_bounce_test.cpp index 5a34193926c..69ca81e3708 100644 --- a/fastos/src/tests/thread_bounce_test.cpp +++ b/fastos/src/tests/thread_bounce_test.cpp @@ -81,11 +81,10 @@ int Thread_Bounce_Test::Main () time_t before = time(0); BounceTest(); - { time_t now = time(0); printf("[%ld seconds]\n", now-before); before = now; } + { time_t now = time(0); printf("[%ld seconds]\n", now-before); before = now; } printf("END OF TEST (%s)\n", _argv[0]); - - return 0; + return allWasOk() ? 0 : 1; } int main (int argc, char **argv) |