apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: apr/test testmmap.c
Date Sun, 15 Dec 2002 19:03:09 GMT
rbb         2002/12/15 11:03:09

  Modified:    test     testmmap.c
  Log:
  testmmap now cleans up all of its file descriptors correctly.
  
  Revision  Changes    Path
  1.40      +9 -0      apr/test/testmmap.c
  
  Index: testmmap.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmmap.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- testmmap.c	13 Dec 2002 00:40:44 -0000	1.39
  +++ testmmap.c	15 Dec 2002 19:03:09 -0000	1.40
  @@ -95,6 +95,14 @@
       CuAssertTrue(tc, oldfileptr != file1);
   }
   
  +static void test_file_close(CuTest *tc)
  +{
  +    apr_status_t rv;
  +
  +    rv = apr_file_close(thefile);
  +    CuAssertIntEquals(tc, rv, APR_SUCCESS);
  +}
  +   
   static void test_file_open(CuTest *tc)
   {
       apr_status_t rv;
  @@ -165,6 +173,7 @@
       SUITE_ADD_TEST(suite, test_mmap_contents);
       SUITE_ADD_TEST(suite, test_mmap_offset);
       SUITE_ADD_TEST(suite, test_mmap_delete);
  +    SUITE_ADD_TEST(suite, test_file_close);
   #else
       SUITE_ADD_TEST(suite, not_implemented);
   #endif
  
  
  

Mime
View raw message