| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1552850 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1552847 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1545278 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1534520 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1530799 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1481387 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
spelling fix
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462819 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462769 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
remove ignored rv
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462764 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1309412 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Backports: r1124983
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1125000 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
Backports: r1124322
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1124323 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1104504 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1094203 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|