diff options
author | Joe Orton <jorton@apache.org> | 2004-03-30 10:18:43 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2004-03-30 10:18:43 +0000 |
commit | a7809369ec8a664ef15c8776905c0d801d0fc7f7 (patch) | |
tree | 15c8c36c3418f4e4f257d2c4f087393dae893f11 /test/testlfs.c | |
parent | ed5670032de2b4a197117ad549b25fe3fec5ecd2 (diff) | |
download | apr-a7809369ec8a664ef15c8776905c0d801d0fc7f7.tar.gz |
* test/testlfs.c (test_open): Skip rather than fail if apr_file_trunc
gives EINVAL when passed the 8gb offset.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65031 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testlfs.c')
-rw-r--r-- | test/testlfs.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/test/testlfs.c b/test/testlfs.c index 828b631a2..8d39c9880 100644 --- a/test/testlfs.c +++ b/test/testlfs.c @@ -62,12 +62,14 @@ static void test_open(CuTest *tc) /* 8Gb may pass rlimits or filesystem limits */ + if (APR_STATUS_IS_EINVAL(rv) #ifdef EFBIG - if (rv == EFBIG) { - CuNotImpl(tc, "Creation of large file (limited by rlimit or fs?)"); - } else + || rv == EFBIG #endif - { + ) { + CuNotImpl(tc, "Creation of large file (limited by rlimit or fs?)"); + } + else { apr_assert_success(tc, "truncate file to 8gb", rv); } |