diff options
author | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 19:31:43 +0000 |
---|---|---|
committer | rbb <rbb@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 19:31:43 +0000 |
commit | e80fd5f303a31aa49fdffdb003ba2b3a8f0e33ef (patch) | |
tree | b58660414cf142e313db80620dd34d391b3453e1 /test | |
parent | 3528f5cff859d25376c5f612fc16324dd5efa3fb (diff) | |
download | libapr-e80fd5f303a31aa49fdffdb003ba2b3a8f0e33ef.tar.gz |
Fix some of the APR test programs.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testpipe.c | 5 | ||||
-rw-r--r-- | test/testproc.c | 5 | ||||
-rw-r--r-- | test/testshmem.c | 2 |
3 files changed, 11 insertions, 1 deletions
diff --git a/test/testpipe.c b/test/testpipe.c index 254b65d5d..29a0ce2c7 100644 --- a/test/testpipe.c +++ b/test/testpipe.c @@ -73,6 +73,11 @@ int main() ap_size_t nbytes; char *buf; + if (ap_initialize() != APR_SUCCESS) { + fprintf(stderr, "Couldn't initialize."); + exit(-1); + } + atexit(ap_terminate); if (ap_create_context(&context, NULL) != APR_SUCCESS) { fprintf(stderr, "Couldn't allocate context."); exit(-1); diff --git a/test/testproc.c b/test/testproc.c index bf9c6683b..ccb2fb18a 100644 --- a/test/testproc.c +++ b/test/testproc.c @@ -78,6 +78,11 @@ int main(int argc, char *argv[]) char *args[3]; char *teststr; + if (ap_initialize() != APR_SUCCESS) { + fprintf(stderr, "Couldn't initialize."); + exit(-1); + } + atexit(ap_terminate); ap_create_context(&context, NULL); diff --git a/test/testshmem.c b/test/testshmem.c index c9df1dff8..d4fcfc800 100644 --- a/test/testshmem.c +++ b/test/testshmem.c @@ -60,7 +60,7 @@ #include "errno.h" #include <stdio.h> #include <stdlib.h> -#include <process.h> +/*#include <process.h>*/ #ifdef BEOS #include <unistd.h> #endif |