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 Thu, 12 Dec 2002 00:30:39 GMT
rbb         2002/12/11 16:30:38

  Modified:    test     testmmap.c
  Log:
  Fix the segfault in testmmap.  The first test, create_filename, was
  failing, which made the second test fail.  That meant that there wasn't
  an open file to MMAP.  Many of these tests still fail, but that is another
  problem.
  
  Revision  Changes    Path
  1.38      +4 -0      apr/test/testmmap.c
  
  Index: testmmap.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testmmap.c,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- testmmap.c	24 Nov 2002 04:57:35 -0000	1.37
  +++ testmmap.c	12 Dec 2002 00:30:38 -0000	1.38
  @@ -83,7 +83,11 @@
       char *oldfileptr;
   
       apr_filepath_get(&file1, 0, p);
  +#ifdef WIN32
  +    CuAssertTrue(tc, file1[1] == ':');
  +#else
       CuAssertTrue(tc, file1[0] == '/');
  +#endif
       CuAssertTrue(tc, file1[strlen(file1) - 1] != '/');
   
       oldfileptr = file1;
  
  
  

Mime
View raw message