diff options
author | Guido G?nther <agx@sigxcpu.org> | 2016-01-09 07:16:59 -0800 |
---|---|---|
committer | Guido G?nther <agx@sigxcpu.org> | 2016-01-09 07:16:59 -0800 |
commit | 566bd26de642865bb6409438f3b4eb5e403f0092 (patch) | |
tree | 3834ffa8dc573115345946460efb6752bc9c2155 | |
parent | 170c0a77997c73ef2c1e84b43df823fe925a5681 (diff) | |
download | nspr-hg-566bd26de642865bb6409438f3b4eb5e403f0092.tar.gz |
Bug 1236334: Correctly return exit status on failure. r=wtc.
-rw-r--r-- | pr/tests/server_test.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pr/tests/server_test.c b/pr/tests/server_test.c index 3df4e435..b794a7fe 100644 --- a/pr/tests/server_test.c +++ b/pr/tests/server_test.c @@ -37,6 +37,7 @@ #define PASS 0 #define FAIL 1 static int debug_mode = 0; +static int failed_already = 0; static int _iterations = 1000; static int _clients = 1; @@ -90,6 +91,7 @@ static void Test_Result (int result) break; case FAIL: printf ("FAIL\n"); + failed_already = 1; break; default: break; @@ -617,5 +619,5 @@ int main(int argc, char **argv) PR_Cleanup(); - return 0; + return failed_already; } |