apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/test testdir.c
Date Sun, 29 Dec 2002 22:10:13 GMT
wrowe       2002/12/29 14:10:13

  Modified:    test     testdir.c
  Log:
    Only APR_FINFO_DIRENT is guarenteed to be supported... other platforms
    may be missing things such as APR_FINFO_GROUP, APR_FINFO_INODE etc.
    It would be healthy to add a {seperate} test that APR_FINFO_MIN at least
    succeeds, but that should not be part of the mainline tests.
  
  Revision  Changes    Path
  1.11      +5 -5      apr/test/testdir.c
  
  Index: testdir.c
  ===================================================================
  RCS file: /home/cvs/apr/test/testdir.c,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- testdir.c	24 Nov 2002 05:11:46 -0000	1.10
  +++ testdir.c	29 Dec 2002 22:10:13 -0000	1.11
  @@ -192,7 +192,7 @@
       rv = apr_dir_open(&dir, "data", p);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
   
  -    rv = apr_dir_read(&finfo, APR_FINFO_NORM, dir);
  +    rv = apr_dir_read(&finfo, APR_FINFO_DIRENT, dir);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertStrEquals(tc, ".", finfo.name);
   
  @@ -209,8 +209,8 @@
       rv = apr_dir_open(&dir, "data", p);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
   
  -    rv = apr_dir_read(&finfo, APR_FINFO_NORM, dir);
  -    rv = apr_dir_read(&finfo, APR_FINFO_NORM, dir);
  +    rv = apr_dir_read(&finfo, APR_FINFO_DIRENT, dir);
  +    rv = apr_dir_read(&finfo, APR_FINFO_DIRENT, dir);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertStrEquals(tc, "..", finfo.name);
   
  @@ -227,14 +227,14 @@
       rv = apr_dir_open(&dir, "data", p);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
   
  -    rv = apr_dir_read(&finfo, APR_FINFO_NORM, dir);
  +    rv = apr_dir_read(&finfo, APR_FINFO_DIRENT, dir);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertStrEquals(tc, ".", finfo.name);
   
       rv = apr_dir_rewind(dir);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
   
  -    rv = apr_dir_read(&finfo, APR_FINFO_NORM, dir);
  +    rv = apr_dir_read(&finfo, APR_FINFO_DIRENT, dir);
       CuAssertIntEquals(tc, APR_SUCCESS, rv);
       CuAssertStrEquals(tc, ".", finfo.name);
   
  
  
  

Mime
View raw message