apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject cvs commit: apr-util/test teststrmatch.c
Date Tue, 22 Jun 2004 16:19:56 GMT
jorton      2004/06/22 09:19:56

  Modified:    test     teststrmatch.c
  Log:
  * test/teststrmatch.c (test_str, teststrmatch): Use global pool 'p'.
  
  Revision  Changes    Path
  1.8       +2 -8      apr-util/test/teststrmatch.c
  
  Index: teststrmatch.c
  ===================================================================
  RCS file: /home/cvs/apr-util/test/teststrmatch.c,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -d -w -u -r1.7 -r1.8
  --- teststrmatch.c	22 Jun 2004 10:24:51 -0000	1.7
  +++ teststrmatch.c	22 Jun 2004 16:19:56 -0000	1.8
  @@ -27,7 +27,7 @@
   
   static void test_str(abts_case *tc, void *data)
   {
  -    apr_pool_t *pool = (apr_pool_t *)data;
  +    apr_pool_t *pool = p;
       const apr_strmatch_pattern *pattern;
       const apr_strmatch_pattern *pattern_nocase;
       const apr_strmatch_pattern *pattern_onechar;
  @@ -82,15 +82,9 @@
   
   abts_suite *teststrmatch(abts_suite *suite)
   {
  -    apr_pool_t *pool;
  -
       suite = ADD_SUITE(suite);
   
  -    apr_pool_create(&pool, NULL);
  -
  -    abts_run_test(suite, test_str, pool);
  -
  -    apr_pool_destroy(pool);
  +    abts_run_test(suite, test_str, NULL);
   
       return suite;
   }
  
  
  

Mime
View raw message