summaryrefslogtreecommitdiff
path: root/test/testproc.c
diff options
context:
space:
mode:
authorRyan Bloom <rbb@apache.org>2000-04-03 19:31:43 +0000
committerRyan Bloom <rbb@apache.org>2000-04-03 19:31:43 +0000
commita08ee8993ce6f0b93cac8e2b64eb6b9ee10537e8 (patch)
treeb58660414cf142e313db80620dd34d391b3453e1 /test/testproc.c
parent02831ac73f69db5c51abdc922c445d2e3bd2035c (diff)
downloadapr-a08ee8993ce6f0b93cac8e2b64eb6b9ee10537e8.tar.gz
Fix some of the APR test programs.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59771 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testproc.c')
-rw-r--r--test/testproc.c5
1 files changed, 5 insertions, 0 deletions
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);