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 2002/11/23 13:37:12 UTC

cvs commit: apr/test testfileinfo.c

jorton      2002/11/23 04:37:12

  Modified:    test     testfileinfo.c
  Log:
  Fix test_stat function; don't call apr_file_close on a dangling pointer.
  
  Revision  Changes    Path
  1.2       +0 -2      apr/test/testfileinfo.c
  
  Index: testfileinfo.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testfileinfo.c,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- testfileinfo.c	22 Nov 2002 06:19:24 -0000	1.1
  +++ testfileinfo.c	23 Nov 2002 12:37:12 -0000	1.2
  @@ -136,7 +136,6 @@
   
   static void test_stat(CuTest *tc)
   {
  -    apr_file_t *thefile;
       apr_finfo_t finfo;
       apr_status_t rv;
   
  @@ -153,7 +152,6 @@
           CuFail(tc, str);
       }
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
  -    apr_file_close(thefile);
   }
   
   static void test_stat_eq_finfo(CuTest *tc)