summaryrefslogtreecommitdiff
path: root/test/testlfs.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-23/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* stop using deprecated versions of APR_FOPEN_* and APR_FPROT_*Jeff Trawick2014-01-181-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1559343 13f79535-47bb-0310-9956-ffa450edef68
* * Increase the size of the mapped block from 16k to 64k since the default pageRuediger Pluem2008-06-181-2/+2
| | | | | | | | | size for linux on ppc64 architecture is sometimes 64k depending on how the kernel was compiled. The increase in the block size does not harm any platforms where this test worked before as 64k is a multiple of 16k. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@669111 13f79535-47bb-0310-9956-ffa450edef68
* Learn the appropriate csize Allocation magic applicableWilliam A. Rowe Jr2007-11-081-3/+2
| | | | | | | | to Windows 2000 (when sparse was introduced) and later. This reverts a bogus test case. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@592970 13f79535-47bb-0310-9956-ffa450edef68
* On some (bogus) platforms we can only discover csize-by-name.William A. Rowe Jr2007-11-061-0/+2
| | | | | | | Ask for it, either way. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@592305 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (test_open): Fix style issues introduced inJoe Orton2007-10-301-8/+4
| | | | | | | r589929; no functional change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@590137 13f79535-47bb-0310-9956-ffa450edef68
* Lots of testing on this first draft is needed. Committing to make it easierWilliam A. Rowe Jr2007-10-301-55/+82
| | | | | | | | | for myself and others to verify that these are good checks to determine if we can use it. I'd love if someone with zfs installed would check it out. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@589929 13f79535-47bb-0310-9956-ffa450edef68
* Introduce APR_FINFO_SPARSE apr_file_open() flag, and populate theWilliam A. Rowe Jr2007-10-141-24/+35
| | | | | | | | | | | | | | | | win32 behavior. This flag may (AFAIK) be ignored for unix since AIUI unix doesn't require anything special? It is only necessary on Win32 to pass this flag once; but we need to anticipate that other platforms special-handling of sparse may require the apr_file_open() call subsequently to be aware that the file is to be handled in this way. FYI the style on testlfs is horrendous, but I only affected the apr_file_open() changes required of this patch. Why on earth do we illustrate deprecated constants in our own test/s ??? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584464 13f79535-47bb-0310-9956-ffa450edef68
* Fix the typo.Joe Orton2006-08-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428317 13f79535-47bb-0310-9956-ffa450edef68
* Update license header.Joe Orton2006-08-031-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@428313 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (test_buffered): Add tests for seeking in bufferedJoe Orton2006-02-081-0/+47
| | | | | | | files. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@375919 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c: Fix cpp tests broken in r280469.Joe Orton2005-09-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@289608 13f79535-47bb-0310-9956-ffa450edef68
* The -v message is really wrong, here. Failure to support sparse filesWilliam A. Rowe Jr2005-09-131-1/+6
| | | | | | | is irrelevant to if LARGEFILES is defined. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@280469 13f79535-47bb-0310-9956-ffa450edef68
* Update remaining 2004 copyright notices.Joe Orton2005-06-141-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@190594 13f79535-47bb-0310-9956-ffa450edef68
* Presently if we fail in apr_assert_success we get the line number forDavid Reid2004-06-071-28/+28
| | | | | | | | | | | | testutil.c reported. Not very useful. This change adds the passing of the (correct) line number and also a macro to ease said passing. I've changed all instances of apr_assert_success to use the new macro, but not all the tests build on this platform so others should check that all is well for them. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65171 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (PRECOND): Return after ENOTIMPL checks trigger toJoe Orton2004-05-241-2/+2
| | | | | | | | | prevent spurious test failures since ABTS_NOT_IMPL doesn't longjmp away. (test_open): Only set 'madefile' on success. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65117 13f79535-47bb-0310-9956-ffa450edef68
* Add the line number to the verbose output from abts. This also removesRyan Bloom2004-05-141-15/+15
| | | | | | | a test that is segfaulting in testshm. That will need to be fixed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65095 13f79535-47bb-0310-9956-ffa450edef68
* Move the APR test suite from CuTest to abts. The output is cleaner,Ryan Bloom2004-05-131-38/+38
| | | | | | | | | | | | and it prints output while running the test. Also, if a test fails the rest of the test function is run, allowing for proper cleanup. Finally, it is possible to call the same function multiple times with different data, and each call is considered a separate test. This is the first of a multi-step process to get a more useful test suite. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65091 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (test_seek): Test APR_END-relative seek; move testJoe Orton2004-04-051-1/+6
| | | | | | | before testappend. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65042 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (test_open): Skip rather than fail if apr_file_truncJoe Orton2004-03-301-4/+6
| | | | | | | 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
* * test/testlfs.c: Fix tests for !APR_HAS_LARGE_FILES.Joe Orton2004-03-271-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65028 13f79535-47bb-0310-9956-ffa450edef68
* Add LFS support:Joe Orton2004-03-271-0/+278
* configure.in: Check for off64_t and necessary LFS functions, define apr_off_t as off64_t where available. Add --disable-lfs flag. Forward-port changes from 0.9.5 to define apr_off_t as long on systems systems with a 32-bit off_t which don't have LFS enabled. * include/apr.h.in: Let configure define APR_HAS_LARGE_FILES. * include/arch/netware/apr_arch_file_io.h: Redefine lseek and ftruncate. * include/arch/unix/apr_arch_file_io.h: Redefine stat, lstat, fstat, lseek, ftruncate here; define struct_stat. * file_io/unix/filestat.c: Use struct_stat. * file_io/unix/mktemp.c: Use mkstemp64 where available. * file_io/unix/open.c (apr_file_open): Use O_LARGEFILE by default when LFS is enabled. * file_io/unix/readwrite.c, file_io/unix/seek.c: Don't redefine lseek and ftruncate here. * mmap/unix/mmap.c (apr_mmap_create): Use mmap64 if available; otherwise check for overflow when LFS is enabled. * network_io/unix/sendrecv.c (apr_socket_sendfile) [Linux/HPUX]: Use sendfile64 if available; otherwise check for overflow when LFS is enabled. [solaris]: Use sendfilev64/sendfilevec64_t. * test/Makefile.in, test/test_apr.h, test/testlfs.c: Add tests. Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65027 13f79535-47bb-0310-9956-ffa450edef68