diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 02:39:27 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2000-04-03 02:39:27 +0000 |
commit | 80847525785dfcfab87aff005f424f9cbd1cb627 (patch) | |
tree | 88ceba9fe994e83bc39cc0f1426be7f78c2b43e3 /test/testfile.c | |
parent | b828ab5a6e1c58c5ac86d81b270e01ba2d612c83 (diff) | |
download | libapr-80847525785dfcfab87aff005f424f9cbd1cb627.tar.gz |
call ap_initialize() and ap_terminate()
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59763 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testfile.c')
-rw-r--r-- | test/testfile.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/testfile.c b/test/testfile.c index 617fac73e..c4660fabb 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -53,6 +53,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include "apr_file_io.h" #include "apr_errno.h" #include "apr_general.h" @@ -78,6 +79,11 @@ int main() char *filename = "test.fil"; char *teststr; + 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); |