summaryrefslogtreecommitdiff
path: root/test/testshm.c
diff options
context:
space:
mode:
authoraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-01-17 00:30:47 +0000
committeraaron <aaron@13f79535-47bb-0310-9956-ffa450edef68>2002-01-17 00:30:47 +0000
commitd01c1c8d9bec972e9a53c31b8ff8957a8b95ff6e (patch)
treed9ee8f6d347197ac0b6dc8662ba055f1ae2b9a08 /test/testshm.c
parenta0101708d90ed99b99aaf6b75ad9a2e04c970d56 (diff)
downloadlibapr-d01c1c8d9bec972e9a53c31b8ff8957a8b95ff6e.tar.gz
I had that exit status check backwards -- it wasn't working when I thought
it was. No bother, it works now. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62799 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testshm.c')
-rw-r--r--test/testshm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testshm.c b/test/testshm.c
index f13d00dce..107ae390a 100644
--- a/test/testshm.c
+++ b/test/testshm.c
@@ -249,7 +249,7 @@ static apr_status_t test_named(apr_pool_t *parpool)
if (waitpid(pidconsumer, &exit_int, 0) < 0) {
return errno;
}
- if (WIFEXITED(exit_int)) {
+ if (!WIFEXITED(exit_int)) {
printf("Producer was unsuccessful.\n");
return APR_EGENERAL;
}
@@ -257,7 +257,7 @@ static apr_status_t test_named(apr_pool_t *parpool)
if (waitpid(pidproducer, &exit_int, 0) < 0) {
return errno;
}
- if (WIFEXITED(exit_int)) {
+ if (!WIFEXITED(exit_int)) {
printf("Consumer was unsuccessful.\n");
return APR_EGENERAL;
}