summaryrefslogtreecommitdiff
path: root/test/testpipe.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* Windows platform: Make pipe test report 'not implemented' instead of failing.Ivan Zhakov2019-05-281-1/+6
| | | | | | | | * test/testpipe.c (wait_pipe): Use apr_file_pipe_create_ex() to create non-blocking pipe. Check for APR_ENOTIMPL status code from apr_file_pipe_wait(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1860301 13f79535-47bb-0310-9956-ffa450edef68
* apr_file_io: Add apr_file_pipe_create_pools() allowing a pair ofGraham Leggett2016-03-131-2/+2
| | | | | | | pipes to be created, each in a different pool. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1734816 13f79535-47bb-0310-9956-ffa450edef68
* Minor fixes to quiet valgrind warningsStefan Fritsch2013-01-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1438959 13f79535-47bb-0310-9956-ffa450edef68
* Hide apr_wait_for_io_or_timeout() from public view and add insteadBrian Havard2010-04-121-0/+30
| | | | | | | apr_socket_wait() and apr_file_pipe_wait(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@933338 13f79535-47bb-0310-9956-ffa450edef68
* One more place where passing in the environment may help with ICC.Bojan Smojver2009-08-031-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@800627 13f79535-47bb-0310-9956-ffa450edef68
* Illustrate the use of the new API which succeeds on all platformsWilliam A. Rowe Jr2007-10-141-3/+3
| | | | | | | (we will hope). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@584494 13f79535-47bb-0310-9956-ffa450edef68
* Solve two sets of issues, only two possible changes, in oneWilliam A. Rowe Jr2007-10-061-4/+4
| | | | | | | | | | | batch commit; * P64 architectures require us to use ABTS_SIZE_EQUAL * We need to localize to TESTBINPATH for win32 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@582544 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
* Fix a host of tests that were using ABTS_INT_EQUAL to compare non-intWilliam A. Rowe Jr2006-02-091-2/+3
| | | | | | | results, which caused mass quantities of compile warnings that don't reflect well on a 'test suite'. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@376406 13f79535-47bb-0310-9956-ffa450edef68
* Keep testpipe.c from hanging on win32. Because of the way win32 pipesGarrett Rooney2006-01-221-3/+5
| | | | | | | | | | | | | | | | work (and I totally don't understand all the details here) we don't get all the same nonblocking semantics on win32 as we do on unix. We do correctly return an error when trying to set timeouts on these kind of pipes though, so look for that and avoid falling into an uninteruptable read later if it happens. * test/testpipe.c (test_write): Don't try to make a nonblocking read if we couldn't set the timeout, it'll just hang. * CHANGES: Note change. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@371198 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright year to 2005 and standardize on current copyright owner line.Justin Erenkrantz2005-02-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@151412 13f79535-47bb-0310-9956-ffa450edef68
* Add the line number to the verbose output from abts. This also removesRyan Bloom2004-05-141-39/+39
| | | | | | | 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-58/+58
| | | | | | | | | | | | 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/testpipe.c (set_timeout): Use global readp, writep.Joe Orton2004-03-221-2/+3
| | | | | | | (testpipe): Close pipes after use. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65021 13f79535-47bb-0310-9956-ffa450edef68
* Remove some common macros to test_apr.hRyan Bloom2004-03-141-9/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64986 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0Justin Erenkrantz2004-02-131-49/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* * testpipe.c (test_pipe_writefull): Wait for the child and ensure itJoe Orton2003-11-231-0/+6
| | | | | | | terminates normally. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64793 13f79535-47bb-0310-9956-ffa450edef68
* add a testcase to catch the problem seen with PR 20295, whereJeff Trawick2003-06-051-0/+67
| | | | | | | | | apr_file_write_full() to pipe with timeout can return EAGAIN PR: 20295 (not fixed just yet) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64527 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices to 2003.Thom May2003-01-011-1/+1
| | | | | | | No functional changes git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64251 13f79535-47bb-0310-9956-ffa450edef68
* Always use overlapped pipes on NT-based machines. This allows pipes toRyan Bloom2002-12-121-10/+27
| | | | | | | | timeout correctly. Also, add a test case for pipes that don't have a timeout. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64162 13f79535-47bb-0310-9956-ffa450edef68
* Force the timeout_read of pipes to fail on Windows. This allows the testRyan Bloom2002-12-121-0/+10
| | | | | | | suite to run all tests, and this test fails as it stands now. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64153 13f79535-47bb-0310-9956-ffa450edef68
* migrate testpipe to the new test suite.Ryan Bloom2002-12-031-52/+79
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@64115 13f79535-47bb-0310-9956-ffa450edef68
* use new time conversion macros in place of APR_USEC_PER_SECBrian Pane2002-07-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63565 13f79535-47bb-0310-9956-ffa450edef68
* Update our copyright for this year.Roy T. Fielding2002-03-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63117 13f79535-47bb-0310-9956-ffa450edef68
* change some of the test programs to use exit status 0 forJeff Trawick2001-08-011-1/+1
| | | | | | | success git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@62073 13f79535-47bb-0310-9956-ffa450edef68
* These are (thankfully) now irrelevant stubs. apr_terminate is definedWilliam A. Rowe Jr2001-06-081-6/+1
| | | | | | | | as _always_ compatible with atexit. A nice mindless exercise for my very sleep-deprived brain. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61735 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright to 2001Roy T. Fielding2001-02-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
* renaming various functions for consistency sakeDoug MacEachern2001-02-081-6/+6
| | | | | | | | | | | see: http://apr.apache.org/~dougm/apr_rename.pl PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
* Get testfile.c to compile when APR_FILES_AS_SOCKETS is defined.Jeff Trawick2001-01-231-1/+1
| | | | | | | Clean up gcc warnings on the closeapr() atexit function. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61108 13f79535-47bb-0310-9956-ffa450edef68
* Commit a bunch of cleanups to get win32 going again. Note the apr.dspWilliam A. Rowe Jr2001-01-231-1/+6
| | | | | | | | built in debug mode is required to actually make these build. There are still todo's for win32 (need cl debug flags, for one). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61100 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bunch of type mis-matches in the test code.Ryan Bloom2000-12-031-1/+1
| | | | | | | | Submitted by: Sam TH <sam@uchicago.edu> Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60867 13f79535-47bb-0310-9956-ffa450edef68
* Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...William A. Rowe Jr2000-08-061-1/+1
| | | | | | | | | | | | | see src/lib/apr/apr_compat.h for most details. Also a few minor nits to get Win32 to build. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
* prefix libapr functions and types with apr_Doug MacEachern2000-08-021-17/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
* win32/pipe.c:Jeff Trawick2000-06-191-9/+10
| | | | | | | | | | | | clean up some error handling logic: on Win9x, return APR_ENOTIMPL instead of APR_SUCCESS from ap_set_pipe_timeout() test/testpipe.c: don't use perror() to report an APR error git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60225 13f79535-47bb-0310-9956-ffa450edef68
* ap_set_pipe_timeout() now takes microseconds instead of seconds;Jeff Trawick2000-04-151-1/+1
| | | | | | | | | ap_interval_time_t was created to represent intervals; Unfortunately, some compile fixes for the recently added buffering code are mixed in with these changes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59862 13f79535-47bb-0310-9956-ffa450edef68
* Change ap_context_t to ap_pool_t. This compiles, runs, and serves pagesRyan Bloom2000-04-141-4/+4
| | | | | | | on Linux, but probably breaks somewhere. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59856 13f79535-47bb-0310-9956-ffa450edef68
* silly cleanup for APR test pgms to avoid compile warnings andJeff Trawick2000-04-141-1/+1
| | | | | | | | to get cvs to ignore some test executables and a directory created by testproc git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59854 13f79535-47bb-0310-9956-ffa450edef68
* Fix some of the APR test programs.Ryan Bloom2000-04-031-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59771 13f79535-47bb-0310-9956-ffa450edef68
* Update to Apache Software License version 1.1Roy T. Fielding2000-03-311-32/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59754 13f79535-47bb-0310-9956-ffa450edef68
* Fix all the License issues. Including:Ryan Bloom2000-03-101-9/+9
| | | | | | | | | s/Apache Group/Apache Software Foundation/ s/1999/2000/ s/Sascha's license/ASF license git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59688 13f79535-47bb-0310-9956-ffa450edef68
* Add a test program for pipes. Add support for non-buffered CGI's to mod_cgi.Ryan Bloom2000-03-011-0/+112
This still doesn't terminate CGI's after a time limit, that's the next step. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59666 13f79535-47bb-0310-9956-ffa450edef68