summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-11-06 06:34:18 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2007-11-06 06:34:18 +0000
commit61be30fe35a1f439934b5977ef3000f9250b4e9f (patch)
tree9e3b6c4409dffb825a2a533fd82878e4478775fb /test
parent837bd7b6f5d7ce089270ec5b7a50be0b564adaae (diff)
downloadlibapr-61be30fe35a1f439934b5977ef3000f9250b4e9f.tar.gz
On some (bogus) platforms we can only discover csize-by-name.
Ask for it, either way. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r--test/testlfs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testlfs.c b/test/testlfs.c
index 9d9dde90d..b9cc5d5a7 100644
--- a/test/testlfs.c
+++ b/test/testlfs.c
@@ -66,6 +66,8 @@ static void test_open(abts_case *tc, void *data)
if (rv == APR_SUCCESS) {
rv = apr_file_info_get(&testsize, APR_FINFO_CSIZE, f);
+ if (rv == APR_INCOMPLETE)
+ rv = apr_stat(&testsize, TESTFN, APR_FINFO_CSIZE, p);
}
/* give up if we can't determine the allocation size of the file,