Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 18738 invoked by uid 500); 22 Oct 2002 23:22:09 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 18726 invoked from network); 22 Oct 2002 23:22:07 -0000 Date: 22 Oct 2002 23:22:06 -0000 Message-ID: <20021022232206.35195.qmail@icarus.apache.org> From: rbb@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/test Makefile.in test_apr.h testall.c testpools.c X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N rbb 2002/10/22 16:22:06 Modified: test Makefile.in test_apr.h testall.c testpools.c Log: Port testpools to the new test suite. Revision Changes Path 1.97 +2 -2 apr/test/Makefile.in Index: Makefile.in =================================================================== RCS file: /home/cvs/apr/test/Makefile.in,v retrieving revision 1.96 retrieving revision 1.97 diff -u -r1.96 -r1.97 --- Makefile.in 22 Oct 2002 18:10:26 -0000 1.96 +++ Makefile.in 22 Oct 2002 23:22:06 -0000 1.97 @@ -209,8 +209,8 @@ testtable@EXEEXT@: testtable.lo $(LOCAL_LIBS) $(LINK) testtable.lo $(LOCAL_LIBS) $(ALL_LIBS) -testall: testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo testmmap.lo testud.lo testtable.lo testsleep.lo CuTest.lo $(LOCAL_LIBS) - $(LINK) testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo testmmap.lo testud.lo testtable.lo testsleep.lo CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS) +testall: testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo CuTest.lo $(LOCAL_LIBS) + $(LINK) testall.lo testtime.lo teststr.lo testvsn.lo testipsub.lo testmmap.lo testud.lo testtable.lo testsleep.lo testpools.lo CuTest.lo $(LOCAL_LIBS) $(ALL_LIBS) # DO NOT REMOVE 1.17 +1 -0 apr/test/test_apr.h Index: test_apr.h =================================================================== RCS file: /home/cvs/apr/test/test_apr.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- test_apr.h 22 Oct 2002 18:10:26 -0000 1.16 +++ test_apr.h 22 Oct 2002 23:22:06 -0000 1.17 @@ -74,6 +74,7 @@ CuSuite *testud(void); CuSuite *testtable(void); CuSuite *testsleep(void); +CuSuite *testpool(void); 1.9 +1 -0 apr/test/testall.c Index: testall.c =================================================================== RCS file: /home/cvs/apr/test/testall.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- testall.c 22 Oct 2002 18:10:26 -0000 1.8 +++ testall.c 22 Oct 2002 23:22:06 -0000 1.9 @@ -72,6 +72,7 @@ testud, testtable, testsleep, + testpool, NULL }; 1.4 +62 -62 apr/test/testpools.c Index: testpools.c =================================================================== RCS file: /home/cvs/apr/test/testpools.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- testpools.c 13 Mar 2002 20:39:27 -0000 1.3 +++ testpools.c 22 Oct 2002 23:22:06 -0000 1.4 @@ -65,90 +65,90 @@ #endif #include "test_apr.h" -static void alloc_bytes(apr_pool_t *p, int bytes) +#define ALLOC_BYTES 1024 + +apr_pool_t *pmain = NULL; +apr_pool_t *pchild = NULL; + +static void alloc_bytes(CuTest *tc) { int i; char *alloc; - printf("apr_palloc for %d bytes\n", bytes); - printf("%-60s", " apr_palloc"); - alloc = apr_palloc(p, bytes); - if (!alloc) { - printf("Failed\n"); - exit(-1); - } - printf("OK\n"); - - printf("%-60s", " Checking entire allocation is writable"); - for (i=0;i