diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-29 22:10:13 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2002-12-29 22:10:13 +0000 |
commit | 32fc9b07dd8ee0627494a17c83878ddb34bde555 (patch) | |
tree | 82898c8233776bbeda835f03afeaa95e32e937c1 /test | |
parent | 2950e24f69fd9459d138c3ad88095be6e6a19816 (diff) | |
download | libapr-32fc9b07dd8ee0627494a17c83878ddb34bde555.tar.gz |
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.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64231 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testdir.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/testdir.c b/test/testdir.c index 6ffe90b9c..1df7eb232 100644 --- a/test/testdir.c +++ b/test/testdir.c @@ -192,7 +192,7 @@ static void test_readdir_onedot(CuTest *tc) 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 @@ static void test_readdir_twodot(CuTest *tc) 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 @@ static void test_rewind(CuTest *tc) 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); |