summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* Backport r917838.minfrin2010-03-079-62/+62
| | | | | | | | Use the APR_FOPEN_* constants instead of the deprecated APR_* constants within code inside the test suite. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@920008 13f79535-47bb-0310-9956-ffa450edef68
* backport r888669 from trunk:covener2010-01-041-1/+1
| | | | | | | | | let HP-UX on IA64 fall through to the default unix case, using .so instead of .sl. http://docs.hp.com/en/B2355-90968/linkerdifferencesiapa.htm git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@895523 13f79535-47bb-0310-9956-ffa450edef68
* merge r834585 from trunk:trawick2009-11-141-1/+105
| | | | | | | | | add testcases for method fallback logic in apr_{pollcb|pollset}_create_ex(), including one for a crash fixed in r834029 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@836106 13f79535-47bb-0310-9956-ffa450edef68
* merge r834130 and r834133 from trunk:trawick2009-11-141-20/+24
| | | | | | | | | | | | | | | | | fix incorrect assumptions in pollset/pollcb tests: - polling won't necessary detect the status change immediately after an I/O operation - a single poll call won't necessarily return multiple status changes after multiple I/O operations and whitespace fixes Submitted by: Neil Conway <nrc cs.berkeley.edu> Reviewed by: trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@836104 13f79535-47bb-0310-9956-ffa450edef68
* Merge r833907 from trunk:trawick2009-11-081-1/+6
| | | | | | | | | | don't assume child process can both connect and close before parent can both accept and look for EOF (fixes intermittent failure seen on Linux and OpenSolaris) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@833920 13f79535-47bb-0310-9956-ffa450edef68
* Merge r821524, r822431, r822892, r824500 from trunk:rpluem2009-10-162-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add apr_socket_is_connected to detect whether the remote side of a socket is still open. The origin of apr_socket_is_connected is r473278 from http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c in httpd. * Improve the documentation Suggested by: jorton * Improve the documentation even further Reviewed by: jim * include/apr_network_io.h, * network_io/unix/socket_util.c (apr_socket_atreadeof): Renamed from apr_socket_is_connected; adjusted to return an apr_status_t error code, and pass an "at EOF" flag via an output parameter. * test/testsock.c (test_atreadeof): Renamed from test_is_connected, adjusted for new API. Reviewed by: jorton, rpluem git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@826089 13f79535-47bb-0310-9956-ffa450edef68
* Backport r824549: fixed error message in abts_ptr_notnull()fuankg2009-10-161-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@825913 13f79535-47bb-0310-9956-ffa450edef68
* cleaned up main NetWare test makefile.fuankg2009-10-051-206/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@822048 13f79535-47bb-0310-9956-ffa450edef68
* improved NetWare test makefiles.fuankg2009-10-053-13/+520
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@821960 13f79535-47bb-0310-9956-ffa450edef68
* fixed nw_misc.c so that it doesnt overwrite line 24 anymore.fuankg2009-10-059-2095/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@821954 13f79535-47bb-0310-9956-ffa450edef68
* renamed NetWare makefiles to our usuaL scheme.fuankg2009-10-058-0/+2087
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@821952 13f79535-47bb-0310-9956-ffa450edef68
* Backport r809854 from the trunk.bojan2009-09-013-2/+13
| | | | | | | Pass environment to children in testsock, testshm and testproc. Further fixes for PR 47590. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@809859 13f79535-47bb-0310-9956-ffa450edef68
* Backport r800627 from the trunk.bojan2009-08-031-0/+3
| | | | | | One more place where passing in the environment may help with ICC. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@800628 13f79535-47bb-0310-9956-ffa450edef68
* Backport r799497 from the trunk.bojan2009-07-312-0/+6
| | | | | | | Pass default environment in testflock and testoc (for ICC compiled stuff). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@799500 13f79535-47bb-0310-9956-ffa450edef68
* replaced pressanykey() since it blocks the NetWare loader when called inside ↵fuankg2009-07-151-2/+12
| | | | | | _NonAppStop(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@794365 13f79535-47bb-0310-9956-ffa450edef68
* play nice when called from bash.fuankg2009-06-301-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@789991 13f79535-47bb-0310-9956-ffa450edef68
* As I had gone ahead and built this table as part of another exercise,wrowe2008-11-211-1/+46
| | | | | | | | it seems worth depositing it here, although the list is redundant for our purposes. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@719690 13f79535-47bb-0310-9956-ffa450edef68
* "make testall" does not build the support programs (readchild, mod_test.la, ...)gregames2008-10-031-1/+1
| | | | | | | | | causing testdso and testflock to fail and testpipe to hang. type less, accomplish more... git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@701392 13f79535-47bb-0310-9956-ffa450edef68
* Test for telnet service instead of http (Solaris 8 doesn't have http).bojan2008-08-111-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@684616 13f79535-47bb-0310-9956-ffa450edef68
* Moved new apr_file_link() function to open.c for all platformstdonovan2008-07-252-20/+19
| | | | | | | | Fixed args & return value for Windows. re: PR 44841 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@679652 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_file_link() function.bojan2008-07-251-0/+20
| | | | | | | PR 44841. Patch by Mark Heily <mark heily.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@679630 13f79535-47bb-0310-9956-ffa450edef68
* * Increase the size of the mapped block from 16k to 64k since the default pagerpluem2008-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: http://svn.apache.org/repos/asf/apr/apr/trunk@669111 13f79535-47bb-0310-9956-ffa450edef68
* Use correct format for apr_time_t.bojan2008-06-171-2/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@668878 13f79535-47bb-0310-9956-ffa450edef68
* Add test for apr_getservbyname().bojan2008-06-021-0/+21
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@662326 13f79535-47bb-0310-9956-ffa450edef68
* Correct license statements to the ASF labeling policy. Note major partswrowe2008-05-282-13/+12
| | | | | | | | | | | | | | of all of apr are already Copyright Ryan Bloom; this is captured in the commit history. However this statement is no longer complete as the code has been modified by other committers, the generic statement is more appropiate. If there is a canonical home for abts, this instead should be noted in these source files. I'm not aware Ryan is maintaining one, apparently http://rkbloom.net/os.html is the homepage, but the links are broken. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@661023 13f79535-47bb-0310-9956-ffa450edef68
* Revert unintentional r658631 change to Makefile.inwrowe2008-05-211-2/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@658632 13f79535-47bb-0310-9956-ffa450edef68
* Add APR_DSOPATH for walking library path locationswrowe2008-05-211-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@658631 13f79535-47bb-0310-9956-ffa450edef68
* Revert r47540mturk2008-04-131-17/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@647562 13f79535-47bb-0310-9956-ffa450edef68
* Introduce apr_pollset_wakeup()mturk2008-04-131-0/+17
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@647540 13f79535-47bb-0310-9956-ffa450edef68
* win32 find.exe != bsd/gnu find, and we want the native flavor.wrowe2007-12-261-1/+2
| | | | | | | | This fails on ancient OS's, but then again, ancient flavors won't be compiling to x64. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@606955 13f79535-47bb-0310-9956-ffa450edef68
* fix some obvious reversals of expected and actual values in invocations trawick2007-11-1810-48/+48
| | | | | | | of ABTS_INT_EQUAL et al git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@596028 13f79535-47bb-0310-9956-ffa450edef68
* check that the library function succeeded, not thattrawick2007-11-181-2/+2
| | | | | | | APR_SUCCESS == 0 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@596027 13f79535-47bb-0310-9956-ffa450edef68
* Learn the appropriate csize Allocation magic applicablewrowe2007-11-081-3/+2
| | | | | | | | to Windows 2000 (when sparse was introduced) and later. This reverts a bogus test case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592970 13f79535-47bb-0310-9956-ffa450edef68
* No use for rv now.wrowe2007-11-061-1/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592306 13f79535-47bb-0310-9956-ffa450edef68
* On some (bogus) platforms we can only discover csize-by-name.wrowe2007-11-061-0/+2
| | | | | | | Ask for it, either way. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592305 13f79535-47bb-0310-9956-ffa450edef68
* More effectively explain apr_shm_remove, and the hints thatwrowe2007-11-061-10/+19
| | | | | | | | it provides to the caller. Document these assumptions by way of a proper test case, cleaning up irrespective of which implementation is available on this platform. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592258 13f79535-47bb-0310-9956-ffa450edef68
* After reviewing the code, back out the previous two commitswrowe2007-11-061-5/+12
| | | | | | | | and take a different approach. _destroy appears to effect a _remove in the first place. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592252 13f79535-47bb-0310-9956-ffa450edef68
* The test for remove should actually be verifying thatwrowe2007-11-061-7/+3
| | | | | | we can no longer attach to a now-removed shm resource. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592245 13f79535-47bb-0310-9956-ffa450edef68
* Axe another poor illustration, apr_shm_destroy preceeds apr_shm_removewrowe2007-11-061-6/+3
| | | | | | | | | | | | for portability. (As the comment hints, a non-portable alternative does exist). And be consistent in the use of @remark's --- although I suspect that we need to review @remarks and transition many to @warning. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592235 13f79535-47bb-0310-9956-ffa450edef68
* Leftover cut-n-paste junk noted by Lucian Adrian Grijincu <lucian.grijincu ↵wrowe2007-11-061-1/+1
| | | | | | gmail.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592232 13f79535-47bb-0310-9956-ffa450edef68
* It is entirely pointless to have nonportable behaviors as exampleswrowe2007-11-061-12/+1
| | | | | | | to end users of the library. Good point, however, for an @tip. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@592215 13f79535-47bb-0310-9956-ffa450edef68
* Broken on EBCDIC platforms at a minimum, perhaps others.wrowe2007-11-011-51/+67
| | | | | | | | | | | | | | | | | | | Previous testhash.c comments indicate an underlying problem: "I don't know why these are out of order, but they are. I would probably consider this a bug, but others should comment." The hash iterator functions do not promise/attempt any ordering. Alphabetically qsort all the dumped hashes using strcmp to provide a testable result set. (wrowe adds; I thought everyone knew better than to use try to get ordered results out of hashes ;-) Submitted by: David Jones <oscaremma gmail.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@591164 13f79535-47bb-0310-9956-ffa450edef68
* Address the make flavor discrepancies that Joe Orton pointed out.wrowe2007-10-311-33/+52
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@590592 13f79535-47bb-0310-9956-ffa450edef68
* * test/testlfs.c (test_open): Fix style issues introduced injorton2007-10-301-8/+4
| | | | | | | r589929; no functional change. git-svn-id: http://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 easierwrowe2007-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: http://svn.apache.org/repos/asf/apr/apr/trunk@589929 13f79535-47bb-0310-9956-ffa450edef68
* avoid passing function ptr in void *trawick2007-10-291-4/+16
| | | | | | | (AIX c compiler barfs in picky mode) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@589844 13f79535-47bb-0310-9956-ffa450edef68
* fix implicit return type for closeConnection()trawick2007-10-291-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@589838 13f79535-47bb-0310-9956-ffa450edef68
* Explanations would be goodwrowe2007-10-262-0/+18
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@588445 13f79535-47bb-0310-9956-ffa450edef68
* Drop redundant referencewrowe2007-10-261-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@588429 13f79535-47bb-0310-9956-ffa450edef68
* Finish reverting to the old manner of building mod_test.lawrowe2007-10-261-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@588420 13f79535-47bb-0310-9956-ffa450edef68