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:19:56 UTC

cvs commit: apr-util/test teststrmatch.c

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;
   }