diff options
author | Jeff Trawick <trawick@apache.org> | 2001-08-02 14:57:36 +0000 |
---|---|---|
committer | Jeff Trawick <trawick@apache.org> | 2001-08-02 14:57:36 +0000 |
commit | 7fd6332bead1dbfe461fd9d58732e2baa70d74ad (patch) | |
tree | ddbbdf4f03ddb7ec065591a4db651d7d42531b80 /test/testthread.c | |
parent | 9d82b054d93108d006b25e3386eac2432b05c701 (diff) | |
download | apr-7fd6332bead1dbfe461fd9d58732e2baa70d74ad.tar.gz |
fix the exit status of testthread so it is easier to use in an
automated regression script
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62084 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testthread.c')
-rw-r--r-- | test/testthread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/testthread.c b/test/testthread.c index ee879006b..0af31e556 100644 --- a/test/testthread.c +++ b/test/testthread.c @@ -197,11 +197,12 @@ int main(void) if (x != 40000) { fflush(stdout); fprintf(stderr, "The locks didn't work???? %d\n", x); + exit(-1); } else { fprintf(stdout, "Everything is working!\n"); } - return 1; + return 0; } #endif /* !APR_HAS_THREADS */ |