You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/06/22 18:28:29 UTC
cvs commit: apr-util/test testutil.c testutil.h
jorton 2004/06/22 09:28:29
Modified: test testutil.c testutil.h
Log:
* test/testutil.c (initialize): Tag the global pool and abort on
apr_initialize failure.
Revision Changes Path
1.2 +4 -1 apr-util/test/testutil.c
Index: testutil.c
===================================================================
RCS file: /home/cvs/apr-util/test/testutil.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -d -w -u -r1.1 -r1.2
--- testutil.c 5 Jun 2004 22:19:41 -0000 1.1
+++ testutil.c 22 Jun 2004 16:28:29 -0000 1.2
@@ -37,8 +37,11 @@
}
void initialize(void) {
- apr_initialize();
+ if (apr_initialize() != APR_SUCCESS) {
+ abort();
+ }
atexit(apr_terminate);
apr_pool_create(&p, NULL);
+ apr_pool_tag(p, "apr-util global test pool");
}
1.4 +3 -2 apr-util/test/testutil.h
Index: testutil.h
===================================================================
RCS file: /home/cvs/apr-util/test/testutil.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -d -w -u -r1.3 -r1.4
--- testutil.h 22 Jun 2004 10:24:51 -0000 1.3
+++ testutil.h 22 Jun 2004 16:28:29 -0000 1.4
@@ -42,8 +42,9 @@
void initialize(void);
-abts_suite *teststrmatch(abts_suite *);
-abts_suite *testuri(abts_suite *);
+abts_suite *teststrmatch(abts_suite *suite);
+abts_suite *testuri(abts_suite *suite);
abts_suite *testuuid(abts_suite *suite);
+abts_suite *testbuckets(abts_suite *suite);
#endif /* APR_TEST_INCLUDES */