summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
Commit message (Collapse)AuthorAgeFilesLines
* More debug to chase different fd in struct than in callbackoehhar2014-03-061-0/+6
|
* socket-14.6 only makes sense where both, IPv4 and IPv6 are supported.max2013-11-121-1/+1
|
* Fix [5425f2c082]: [fconfigure -error] breaks the background processing of a ↵max2013-11-121-0/+28
| | | | pending [socket -async].
* Let all test-cases which require Thread, at least require Thread 2.7jan.nijtmans2012-11-161-1/+1
|
* Prevented intermittent test failure due to race condition.dkf2012-05-311-0/+1
|
* Update requirements to avoid old buggy Thread releases.dgp2012-05-211-1/+1
|
* 3428754 Test socket-14.2 tolerate [socket -async] connection that connectsdgp2012-05-031-9/+12
| | | synchronously.
* Made test socket-14.1 more robust to stop failure on OS X (Snow Leopard)dgp2011-09-161-0/+1
|
* 3390699 Convert [testthread] use to Thread package use in socket_*-13.1.dgp2011-09-111-19/+10
| | | Eliminates a memory leak in `make valgrind`.
* Rework constraint detection and add constraints that cater for the fact, ↵max2011-06-281-9/+22
| | | | that both address families might be available, but localhost only resolves to one of the loopback addreses.
* replace socket-14.3 with a test that is more useful and less likely to ↵max2011-06-281-12/+17
| | | | randomly fail depending on the local network environment.
* * unix/tclUnixSock.c (CreateClientSocket): Fix and simplify posting of ↵max2011-06-281-7/+60
| | | | | the writable fileevent at the end of an asynchronous connection attempt. Improve comments for some of the trickery around [socket -async]. [Bug 3325339] * tests/socket.test: Adjust tests to the async code changes. Add more tests for corner cases of async sockets.
* Merge fixes for [socket -async] and other improvements to the unix socket codemax2011-06-221-1/+85
|\
| * complete a comment in socket.testrmax_ipv6_branchmax2011-06-221-1/+2
| |
| * * doc/socket.n: Document the fact that the event loop is now needed for ↵max2011-06-161-0/+3
| | | | | | | | | | | | [socket -async] * unix/tclUnixSock.c: Set up the file handler for async sockets to fire on exceptions in addition to writable state. * tests/socket.test: Improve error reporting when socket-14.2 times out.
| * * Don't use port 0 for test 14.2 as it fails in different ways on Linux ↵max2011-06-061-2/+2
| | | | | | | | | | | | | | and NetBSD. * Unify channel name creation. * Prevent error messages from appearing twice. * Double the measured latency in socket.test to be on the safe side.
| * * Improve socket.test by checking the latency on the loopback address and ↵max2011-06-011-7/+30
| | | | | | | | | | use that for some of the tests instead of fixed "big enough" times. * Improve correctness of [socket -async] in some error cases.
| * * Fix setting up of [fileevent] while an async socket is still in progress max2011-05-301-2/+37
| | | | | | | | * Cache async socket errors for later use by [fconfigure -error] * Add tests for the above
| * Fix [socket -async] for DNS names with more than one addressmax2011-05-271-0/+22
| |
* | Add test constraint, so 6.2 and 6.3 don't fail when the machine does not ↵jan.nijtmans2011-06-061-2/+2
|/ | | | | have support for ip6 Follow-up to checkin from 2011-05-11 by rmax
* fix a timing issue in socket-12.3max2011-05-271-1/+2
|
* * unix/tclUnixSock.c (TcpWatchProc): No need to check for server sockets ↵max2011-05-111-0/+18
| | | | | here, as the generic server code already takes care of that. * tests/socket.test (accept): Add tests to make sure that this remains so.
* Now that we're no longer using SCM based on RCS, the RCS Keyword linesdgp2011-03-021-2/+0
|\ | | | | cause more harm than good. Purged them (except in zlib files).
| * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-021-2/+0
| |\ | | | | | | more harm than good. Purged them.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * tests/socket.test: Extended the timeout in socket-11.11 from 10andreas_kupries2006-03-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to 40 seconds to allow for really slow machines. Also extended actual/expected results with value of variable 'done' to make it clearer when a test fails due to a timeout. [Bug 792159]. * generic/tclPipe.c (TclCreatePipeline): Modified the processing of pipebars to fail if the last bar is followed only by redirections. [Bug 768659].
| | * D'oh!dgp2004-10-281-2/+2
| | |
| | * * tests/socket.test (socket-13.1): Balanced [makeFile] anddgp2004-10-281-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | [removeFile] commands. * generic/tclCmdAH.c (Tcl_FormatObjCmd): Restored missing line from yesterdays' 868486 backport that caused failed alloc's on LP64 systems.
| | * * tests/socket.test: Accepted two new testcases by Stuart Casoffandreas_kupries2004-07-161-1/+7
| | | | | | | | | | | | | | | <stwo@users.sourceforge.net> checking that -server and -async don't go together [Tcl SF Bug 796534].
| | * * tests/basic.test: Made several tests more robust to thedgp2004-02-251-11/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/cmdMZ.test: list-quoting of path names that might * tests/exec.test: contain Tcl-special chars like { or [. * tests/io.test: Should help us sort out Tcl Bug 554068. * tests/pid.test: * tests/socket.test: * tests/source.test: * tests/unixInit.test:
| | * * tests/exec.test: Corrected temporary file managementdgp2003-10-071-31/+33
| | | | | | | | | | | | | | | | | | | | | | | | * tests/fileSystem.test: issues uncovered by -debug 1 test * tests/ioCmd.test: operations. Also backported some * tests/pid.test: other fixes from the HEAD. * tests/socket.test: [Bugs 675605, 675655] * tests/source.test:
* | | some more speedups to socket.testrmax2010-11-041-5/+5
| | |
* | | avoid having to wait for some child processes to time out after all tests ↵rmax2010-11-041-1/+4
| | | | | | | | | | | | have been run
* | | Rework some of the tests to speed them up by avoiding (supposedly)rmax2010-11-041-29/+27
| | | | | | | | | | | | unneeded [after]s.
* | | reorder the constraint list per test for clearer make test output of skipped ↵rmax2010-11-041-35/+35
| | | | | | | | | | | | tests
* | | * tests/socket.test: Run the socket tests three times with thermax2010-11-041-154/+172
| | | | | | | | | | | | | | | | | | | | | | | | address family set to any, inet, and inet6 respectively. Use constraints to skip the tests if a family is found to be unsupported or not configured on the local machine. Adjust the tests to dynamically adapt to the address family that is being tested.
* | | * doc/socket.n: Document the changes to the [socket] and rmax2010-09-281-95/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [fconfiguyre] commands. * generic/tclInt.h: Introduce TclCreateSocketAddress() as a * generic/tclIOSock.c: replacement for the platform-dependent * unix/tclUnixSock.c: TclpCreateSocketAddress() functions. * unix/tclUnixChan.c: Extend the [socket] and [fconfigure] * unix/tclUnixPort.h: commands to behave as proposed in * win/tclWinSock.c: TIP #162. * win/tclWinPort.h: * compat/fake-rfc2553.c: A compat implementation of the APIs * compat/fake-rfc2553.h: defined in RFC-2553 (getaddrinfo() and friends) on top of the existing gethostbyname() etc. * unix/configure.in: Test whether the fake-implementation is * unix/tcl.m4: needed. * unix/Makefile.in: Add a compile target for fake-rfc2553. * win/configure.in: Allow cross-compilation by default * tests/socket.test: Improve the test suite to make more use of * tests/remote.tcl: randomized ports to reduce interference with tests running in parallel or other services on the machine.
* | | prevent a race condition when shutting down the remote test serverrmax2010-06-251-3/+2
| | |
* | | Use tcltest2 better.dkf2008-09-021-419/+395
|/ /
* | * tests/exec.test (exec-9.7): reduce timing sensitivitydas2008-03-111-1/+2
| | | | | | | | * tests/socket.test (socket-2.11): (esp. on multi-proc machines).
* | Keep most tests from making sockets that are reachable off the machine.dkf2006-11-031-62/+52
| |
* | * tests/socket.test: Extended the timeout in socket-11.11 from 10andreas_kupries2006-03-161-4/+4
| | | | | | | | | | | | | | | | | | | | to 40 seconds to allow for really slow machines. Also extended actual/expected results with value of variable 'done' to make it clearer when a test fails due to a timeout. [Bug 792159]. * generic/tclPipe.c (TclCreatePipeline): Modified the processing of pipebars to fail if the last bar is followed only by redirections. [Bug 768659].
* | Fix test that checked for non-standard case of error message (which dkf2005-11-011-23/+23
| | | | | | | | was fixed by earlier check-in)
* | socket wrong#args message now follows the general conventionsdkf2005-07-171-16/+6
| |
* | * tests/basic.test: Updated functional (not testing) uses ofdgp2004-11-181-19/+36
| | | | | | | | | | | | | | | | * tests/io.test: [bgerror] to make use of [interp bgerror]. * tests/socket.test: * tests/timer.test: * generic/tclInterp.c: Corrected [interp bgerror] error message.
* | niggly test suite fixesdgp2004-11-041-2/+2
| |
* | D'oh!dgp2004-10-281-2/+2
| |
* | * tests/socket.test (socket-13.1): Balanced [makeFile] anddgp2004-10-281-25/+25
| | | | | | | | [removeFile] commands.
* | * tests/socket.test: Accepted two new testcases by Stuart Casoffandreas_kupries2004-07-161-1/+7
| | | | | | | | | | <stwo@users.sourceforge.net> checking that -server and -async don't go together [Tcl SF Bug 796534].
* | Standardize some use of test constraints onto names that are documenteddkf2004-06-231-3/+3
| |