diff options
author | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-11-08 00:23:38 +0000 |
---|---|---|
committer | wrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68> | 2007-11-08 00:23:38 +0000 |
commit | 0e798f7cef9eaf7277f714948e423641b12843ed (patch) | |
tree | 86192a21d359b2654b3130a9fac27faf11a5bf40 /test | |
parent | a38d7a6eeebdc810808faf536c9dee98efbb6871 (diff) | |
download | libapr-0e798f7cef9eaf7277f714948e423641b12843ed.tar.gz |
Learn the appropriate csize Allocation magic applicable
to Windows 2000 (when sparse was introduced) and later.
This reverts a bogus test case.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592970 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/testlfs.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/testlfs.c b/test/testlfs.c index b9cc5d5a7..13bff9bc4 100644 --- a/test/testlfs.c +++ b/test/testlfs.c @@ -66,13 +66,12 @@ 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, * or if it's not an obviously small allocation but the allocation - * unit doesn't appear insanely large + * unit doesn't appear insanely large - on most platforms, it's just + * zero physical bytes at this point. */ if (rv != APR_SUCCESS || (testsize.csize > oneMB && testsize.csize < oneMB * 2)) { |