summaryrefslogtreecommitdiff
path: root/test/testdso.c
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2001-01-23 06:00:44 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2001-01-23 06:00:44 +0000
commitfa1733fcb7d2d6df3711005e193df8661ac818f8 (patch)
tree94ade51ac80aa48534184f757828b8a687dd1698 /test/testdso.c
parent57c8f2be991ff28ebec33b1ed239555b880461cc (diff)
downloadapr-fa1733fcb7d2d6df3711005e193df8661ac818f8.tar.gz
Commit a bunch of cleanups to get win32 going again. Note the apr.dsp
built in debug mode is required to actually make these build. There are still todo's for win32 (need cl debug flags, for one). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61100 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testdso.c')
-rw-r--r--test/testdso.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/testdso.c b/test/testdso.c
index 3376b5ac8..3a0790f74 100644
--- a/test/testdso.c
+++ b/test/testdso.c
@@ -11,6 +11,11 @@
#define LIB_NAME "mod_test.so"
+void closeapr(void)
+{
+ apr_terminate();
+}
+
int main (int argc, char ** argv)
{
apr_dso_handle_t *h = NULL;
@@ -28,7 +33,7 @@ int main (int argc, char ** argv)
strcat(filename, LIB_NAME);
apr_initialize();
- atexit(apr_terminate);
+ atexit(closeapr);
if (apr_create_pool(&cont, NULL) != APR_SUCCESS) {
fprintf(stderr, "Couldn't allocate context.");