summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
Commit message (Collapse)AuthorAgeFilesLines
* Draft test for [1758a0b603].dgp2014-06-131-0/+41
|
* Test socket-2.12 covers the DiscardOutput() update.dgp2014-06-051-1/+39
|
* Moved tests socket-8.2 and socket-8.3 to socket-14.3 and socket-14.4 and ↵oehhar2014-04-041-29/+31
|\ | | | | | | made them robust against connect failures
| * Move tests 8.2 and 8.3 out of the IPv4/IPv6 loop to 14.13 and 14.14.max2014-04-041-31/+32
| |
| * Fix/improve tests.max2014-04-041-37/+30
| |
| * Add tests for bugs [336441ed59] and [581937ab1e] from core-8-5-branch.max2014-04-041-0/+29
| |
| * * Rework WaitForConnect() to fix synchronous completion of asynchronous ↵max2014-04-041-5/+8
| | | | | | | | | | | | connections. * Let TcpInputProc() and TcpOutputProc() fail before calling any I/O syscalls when an asynchronous connection has failed. * Adjust the tests accordingly.
* | Fix bug [581937ab1e]: fire readable event on async socket connect failurebug_581937ab1eoehhar2014-04-021-0/+17
|\ \ | |/
| * * More test improvements for async sockets.max2014-03-141-19/+26
| | | | | | | | * Advance async connections whenever the channel is touched (e.g. by [chan configure]). * Add a noblock argument to WaitForConnect(), so that advancing async connections from [chan configure] doesn't block even on a blocking socket.
| * * Hide transient errors of the internal iterations of [socket -async] ↵max2014-03-111-5/+155
| | | | | | | | | | from the script level. * More tests for corner cases.
| * WaitForConnect may only call back to CreateClientSocket when the socket is ↵max2014-03-101-2/+2
| | | | | | | | writable or something. When it does so for a pending socket, it is falsely assumed to have succeeded and a subsequent read/write operation will fail.
| * * tclUnixSock.c: Fix WaitForConnect() for client sockets that have to try ↵max2014-03-101-20/+179
| | | | | | | | | | | | more than one address. * socket.test: Extend and improve tests for [socket -async] * socket.test: Add latency measuring and calculation for Windows.
| * 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).
| * | 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
| | |
* | | Test to demonstrate bug [336441ed59]. Depends on timing and will not always ↵oehhar2014-04-021-0/+16
| |/ |/| | | | | fire but is better than nothing. Reliable for me.
* | 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].