summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* Merged r1559975 from trunk:brane2014-01-211-15/+28
| | | | | | | | | | | | | | Give every thread in the parallel recursive mkdir test its own pool to play with, to prevent weird data interdependencies. * test/testdir.c (struct thread_data): Encapsulates abts_case and per-thread pool. (thread_mkdir_func): Thread data is thread_data, not abts_case. (test_mkdir_recurs_parallel): Create a separate pool and thread data struct for each thread. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1559976 13f79535-47bb-0310-9956-ffa450edef68
* Merged rr1559873 from trunk:brane2014-01-211-0/+122
| | | | | | | | | | | | | | | | | | Fix timing bug in parallel apr_dir_make_recursive on Windows. * file_io/win32/dir.c (dir_make_parent): When parent just got created, continue creating children. (apr_dir_make_recursive): Only handle EEXIST of the requested directory as success, not any ancestor. Patch by: rhuijben * test/testdir.c (test_mkdir_recurs_parallel): New multithreaded test case. (test_removeall): Clean up after test_mkdir_recurs_parallel. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1559878 13f79535-47bb-0310-9956-ffa450edef68
* backport r1552849 from trunk: disable entity escape/unescape tests on EBCDIC covener2013-12-211-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1552850 13f79535-47bb-0310-9956-ffa450edef68
* backport r1552846 from trunk -- pickup htons where needed.covener2013-12-211-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1552847 13f79535-47bb-0310-9956-ffa450edef68
* merge r1551650 from trunk:trawick2013-12-172-1/+56
| | | | | | | | Add testcase for broken handling of APR_O_NONBLOCK_INHERITED (as seen on FreeBSD 10). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1551667 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1004521:trawick2013-12-171-2/+2
| | | | | | | | | Check the return code like in trunk r1089424. As it is, it normally bypasses the testcase and leaves the bound socket open. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1551666 13f79535-47bb-0310-9956-ffa450edef68
* Check that adding a negative number works as expected.jim2013-11-251-0/+12
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1545278 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1541655 and 1541666 from trunk:trawick2013-11-131-6/+16
| | | | | | | | | | | | | Fix message when !APR_HAS_MMAP Read the contents of the test datafile instead of hard-coding it in the source and relying on the line ending in the datafile to be the same as APR_EOL_STR. (Or, allow building and testing on Windows and Unix using the same release tarball.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1541673 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1541061 from trunk:trawick2013-11-121-0/+11
| | | | | | | add apr_sockaddr_is_wildcard() API git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1541078 13f79535-47bb-0310-9956-ffa450edef68
* merge r1541054 from trunk:trawick2013-11-121-2/+4
| | | | | | | Fix error message from ABTS_INT_NEQUAL() and ABTS_STR_NEQUAL(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1541066 13f79535-47bb-0310-9956-ffa450edef68
* add the remaining 8GB huge test file to the clean listgsmith2013-10-221-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534520 13f79535-47bb-0310-9956-ffa450edef68
* merge r789050 from trunk:trawick2013-10-211-2/+2
| | | | | | | | | fixed port type. Submitted by: fuankg git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534125 13f79535-47bb-0310-9956-ffa450edef68
* merge r775683 from trunk:trawick2013-10-211-0/+12
| | | | | | | test APR_TIME_T_FMT along with the other format strings git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534124 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_escape, gen_test_char & testescapegsmith2013-10-211-1/+1
| | | | | | | | to traditional Windows build system git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534053 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1531884 from trunk:trawick2013-10-141-2/+6
| | | | | | | | Close socket and get a new one before retrying apr_socket_connect(), resolving an intermittent EINVAL failure from connect() on FreeBSD. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531894 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1531554 from trunk:trawick2013-10-121-8/+12
| | | | | | | don't spend 10 minutes in testlockperf during make test/check on Windows git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531556 13f79535-47bb-0310-9956-ffa450edef68
* Merge non-APR-Util bits of r1523521 and 1523604 from trunk:trawick2013-10-111-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | r1523521: fix various compile errors and warnings (in testucs.c) r1523604: Fix build of aprapp/libaprapp (APR_DECLARE_STATIC was misplaced). Support building test suite against either static or dynamic libs. (Requiring separate builds is ugly, but so is creating a more complex directory structure or naming convention in the build directory and possibly having to modify test program source to find child programs.) Build additional test programs. Add running the test suite to the build system. (Using the "NMake Makefiles" generator, use "nmake test" to run silently, with output logged to some files, or "nmake check" to run with test output logged to the console.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531155 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1523484,1523505,1523613,1523844,1523853,1524014,1524031,1529515 from ↵trawick2013-10-102-171/+191
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | trunk Essentially: The sendfile test is now simple to automate, and runs automatically from the autoconf-based build's "make check". r1523484: Hard-code the same address family on the server side as it already is on the client side; otherwise, connect will fail on dual-stack if IPV6_V6ONLY defaults to ON. (The socket setup could stand to be rewritten!) r1523505: Allow sendfile-as-client to start up the server program and display its output. r1523613: report an error if the client couldn't read stdout from the server within a couple of seconds r1523853: client mode: wait a bit for the server to start up if it was spawned by the client (to solve buildbot failure, presumably) axe stray "aprerr" emit from aprerr() r1524014: fix what is effectively apr_time_from_msec(apr_time_from_msec(small)) Reported by: Yann Ylavic <ylavic.dev gmail.com> r1524031: follow-up to r1523853 and r1524014: when running in automated mode (client starts the server process), make the client stop calling apr_connect() as soon as it works or some non-ECONNREFUSED error occurs Submitted by: Yann Ylavic <ylavic.dev gmail.com> r1523844: run the sendfile test automatically (autoconf-based build) r1529515: Fix executable file extension on Windows (autoconf-based build) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531116 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1523479 from trunk (but testpass is in APR-Util):trawick2013-10-102-1/+2
| | | | | | | | | | | | | assert() games: testmutexscope relies on assert() to check as well as to run at all, so make sure NDEBUG isn't defined. testpass and teststr don't use assert(), so don't include <assert.h>. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1531104 13f79535-47bb-0310-9956-ffa450edef68
* Backport the apr_escape() interface to apr v1.5.minfrin2013-10-094-1/+276
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1530799 13f79535-47bb-0310-9956-ffa450edef68
* Remove assumption that drive letters are always uppercase.rjung2013-10-031-0/+44
| | | | | | | | | | | | | | | | | | * file_io/win32/filepath.c: (same_drive): new helper function (apr_filepath_merge): use helper rather than a simple comparison * test/testnames.c: (merge_lowercasedrive): do some tests with lowercase drive names Patch by: Bert Huijben <bert {at} qqmail.nl> Backport of r960665 from trunk. Had already been applied to 1.4.x as r1099173 and r1099181. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1528791 13f79535-47bb-0310-9956-ffa450edef68
* fix spelling in a commentrjung2013-10-031-1/+1
| | | | | | | Backport of r739635 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1528780 13f79535-47bb-0310-9956-ffa450edef68
* merge r1516261 from trunk:trawick2013-08-291-0/+3
| | | | | | | | support Windows-style paths when checking for absolute paths (e.g., cmake-based out of tree build) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1518422 13f79535-47bb-0310-9956-ffa450edef68
* Backport testcase for PR 53175 from trunk.fuankg2013-05-111-26/+36
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1481387 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1480067 to v1.5 branch.minfrin2013-05-071-0/+20
| | | | | | | | Add the apr_table_getm() call, which transparently handles the merging of keys with multiple values. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1480071 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1470348:sf2013-04-211-2/+3
| | | | | | | | | | Fix amd64 assembler version of apr_atomic_xchgptr() PR: 51851 Submitted by: Mattias Engdegård <mattiase acm org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470349 13f79535-47bb-0310-9956-ffa450edef68
* merge r 1462813 from trunktrawick2013-03-301-1/+1
| | | | | | | spelling fix git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462819 13f79535-47bb-0310-9956-ffa450edef68
* Copy the data folder too for testing on NetWare.fuankg2013-03-301-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462769 13f79535-47bb-0310-9956-ffa450edef68
* merge r1460405 from trunktrawick2013-03-301-0/+4
| | | | | | | hide an unused variable on Unix git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462768 13f79535-47bb-0310-9956-ffa450edef68
* merge r1460399 from trunktrawick2013-03-301-6/+19
| | | | | | | | | | clean up a bit of error handling just to get rid of sockperf.c: In function 'main': sockperf.c:206:18: warning: variable 'rv' set but not used [-Wunused-but-set-variable] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462766 13f79535-47bb-0310-9956-ffa450edef68
* merge r1456418 from trunktrawick2013-03-301-2/+1
| | | | | | | remove ignored rv git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462764 13f79535-47bb-0310-9956-ffa450edef68
* merge r1389077 (minus the apr-util bits) from trunktrawick2013-03-303-5/+5
| | | | | | | easy fixes for a few warnings about unused variables git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462758 13f79535-47bb-0310-9956-ffa450edef68
* * Add apr_hash_this_key(), apr_hash_this_key_len(), andrjung2013-03-291-3/+4
| | | | | | | | | | | | | | | | | | | | | | apr_hash_this_val() for easier access to those attributes from a hash iterator. PR: 49065 Submitted by: Hyrum K. Wright <hyrum_wright mail.utexas.edu> Reviewed by: trawick, wrowe Backport by: rjung Backport of r931973 from trunk. * test/testhash.c (dump_hash): Fix compiler warning due to lack of const. Submitted by: jorton Backport by: rjung Backport of r951771 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462461 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1405985 from trunk:jorton2012-12-111-0/+1
| | | | | | | | | | | | * network_io/unix/sockaddr.c (apr_ipsubnet_test): Fix false positive when testing a v4 subnet against a v6 address. * test/testipsub.c (test_interesting_subnets): Add test. PR: 54047 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1420111 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1089129 from trunk:trawick2012-08-121-2/+7
| | | | | | | | | | MinGW: Resolve paths to test DSOs and executables within the test suite. PR: 51021 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372210 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1088023 from trunk:trawick2012-08-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MinGW/MSYS: Support shared builds of APR, other general improvements to support of this toolchain. test/Makefile.in: * $(LT_LDFLAGS) must be placed after the driver, otherwise it will act exactly like $(LTFLAGS). This is required, otherwise libtool will be never able to recognize the "-no-undefined" flag. * if mod_test.la does not specify $(LOCAL_LIBS), compilation will fail (this is required by both static and shared builds). include/apr.h.in: * It is required to declare APR_DECLARE, APR_DECLARE_NONSTD and APR_DECLARE_DATA as they are in apr.hw, otherwise the generate DLL won't export any symbol. APR_MODULE_DECLARE_DATA is already included, but previous ones are not. configure.in: * $(LT_LDFLAGS) must be placed after the driver, as described for test/Makefile.in. * Added "-no-undefined" flag to $(LT_LDFLAGS) if the target platform is Windows. * Declare APR_DECLARE_EXPORT or APR_DECLARE_STATIC, required by the macro added in include/apr.h.in. * Removed the "strange" libraries detection (btw, probably it was also breaking platforms without __stdcall calling convention, like Windows CE/Mobile/Phone, since function names were decorated), linker gave error without sense if adding "-lkernel32", probably because it creates a conflict of library precedence and dependency.+++ PR: 46175 Submitted by: Carlo Bramini <carlo.bramix libero.it> (+++This small subset of r1088023 had already been merged with r1091186.) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372206 13f79535-47bb-0310-9956-ffa450edef68
* merge r1372018 from trunk:trawick2012-08-111-3/+3
| | | | | | | | fix print_time() to format the month properly, and adjust the tests to accommodate git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372020 13f79535-47bb-0310-9956-ffa450edef68
* Backport fix for apr_mcast_hops returning EINVAL from trunkmturk2012-04-041-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1309412 13f79535-47bb-0310-9956-ffa450edef68
* Backport r1236970, r1237078 and r1237507 from trunk.bojan2012-01-301-0/+74
| | | | | | Randomise hashes by providing a seed (initial hash value). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1237546 13f79535-47bb-0310-9956-ffa450edef68
* Fix test case for child randomness.rjung2011-11-081-41/+97
| | | | | | | Backport of r1198923 from trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1199080 13f79535-47bb-0310-9956-ffa450edef68
* Document another unexpected failure, already resolvedwrowe2011-05-191-0/+1
| | | | | | Backports: r1124983 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125000 13f79535-47bb-0310-9956-ffa450edef68
* Add more pattern tests involving slashes.wrowe2011-05-181-1/+11
| | | | | | Backports: r1124322 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124323 13f79535-47bb-0310-9956-ffa450edef68
* Sync fnmatch pattern tests to apr-2.0 trunk at r1104503.wrowe2011-05-171-0/+169
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1104504 13f79535-47bb-0310-9956-ffa450edef68
* From trunk:trawick2011-04-291-0/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. r1089433 poll, pollset, pollcb on Windows: Handle calls with no file/socket descriptors. PR: 49882 Patch for one situation submitted by: Stefan Ruppert <sr myarm.com> Extended by: trawick 2. r1089528 fix variable initialization bug in r1089433 3. r987639 disable entire impl_pollcb_create() function if APR_HAS_THREADS instead of just inserting a return at the top 4. tiny part of r899905 move decl of loop control variables to the block where used git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1097783 13f79535-47bb-0310-9956-ffa450edef68
* NetWare test makefile fixes.fuankg2011-04-178-51/+32
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1094203 13f79535-47bb-0310-9956-ffa450edef68
* merge trunk revs 1083169, 1083177, 1083178, 1083183, and 1083227trawick2011-03-212-0/+4
| | | | | | | | | | to resolve some gcc warnings and dead code on Windows (the testlfsabi change from r1083183 is omitted, as the testcases aren't in this branch) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1083869 13f79535-47bb-0310-9956-ffa450edef68
* NetWare build overhaul in order to compile on Linux.fuankg2011-03-1812-103/+112
| | | | | | | Backport of all recent changes to trunk. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1082778 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1081120 from trunk:trawick2011-03-131-0/+6
| | | | | | | | | | | | | | apr_sockaddr_info_get() on AIX: Fix a problem which could set the port field in the native socket address to 1 when 0 was specified. An AIX-specific hack to work around a service name limitation used "1" as the service name, but the 1 was not replaced later. PR: 46964 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1081121 13f79535-47bb-0310-9956-ffa450edef68
* Resolve an irritating segv for those of us who deliberatelywrowe2010-10-051-1/+2
| | | | | | have listeners on port 8021. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1004521 13f79535-47bb-0310-9956-ffa450edef68
* Merge r983618 from trunk:rpluem2010-08-201-6/+29
| | | | | | | | | | | | | | | | | | * network_io/unix/sockets.c (apr_socket_connect): Copy the remote address by value rather than by reference. This ensures that the sockaddr object returned by apr_socket_addr_get is allocated from the same pool as the socket object itself, as apr_socket_accept does; avoiding any potential lifetime mismatches. * test/testsock.c (test_get_addr): Enhance test case to cover this. PR: 49713 Submitted by: jorton Reviewed by: rpluem git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@987532 13f79535-47bb-0310-9956-ffa450edef68