jorton 2004/03/30 02:18:43
Modified: test testlfs.c
Log:
* test/testlfs.c (test_open): Skip rather than fail if apr_file_trunc
gives EINVAL when passed the 8gb offset.
Revision Changes Path
1.3 +6 -4 apr/test/testlfs.c
Index: testlfs.c
===================================================================
RCS file: /home/cvs/apr/test/testlfs.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -w -d -u -r1.2 -r1.3
--- testlfs.c 27 Mar 2004 16:15:02 -0000 1.2
+++ testlfs.c 30 Mar 2004 10:18:43 -0000 1.3
@@ -62,12 +62,14 @@
/* 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);
}