summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whetherdgp2014-07-021-0/+20
|\ | | | | a nonblocking channel is blocked.
| * [c31ca233ca] Fix TclGetsObjBinary() so that each [gets] rediscovers whetherdgp2014-07-021-0/+20
| | | | | | a nonblocking channel is blocked.
* | [f0f876c141] Improve consistency in error messages.dkf2014-06-179-38/+38
| |
* | merge socket test from 8.5dgp2014-06-161-0/+42
|\ \ | |/
| * Draft test for [1758a0b603].dgp2014-06-131-0/+41
| |
* | [cb042d294e] Improve consistency of [dict] wrong-args error messages.dkf2014-06-151-26/+26
| |
* | Make [dict replace] and [dict remove] guarantee result canonicality.dkf2014-06-151-11/+19
| |
* | Improved the error messages. dkf2014-06-071-10/+10
| | | | | | | | We do not want parsing an invalid dictionary to give errors about lists! As compensation, we get greater precision in the errorcode.
* | merge trunkdkf2014-06-062-1/+72
|\ \
| * \ Tests socket*-2.12 test for DiscardOutput() updates.dgp2014-06-051-1/+39
| |\ \ | | |/
| | * Test socket-2.12 covers the DiscardOutput() update.dgp2014-06-051-1/+39
| | |
| * | When too many chars are read by ReadChars() and we trim the limits to get it ↵dgp2014-06-051-0/+33
| |\ \ | | |/ | | | | | | right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code.
| | * When too many chars are read by ReadChars() and we trim the limits todgp2014-06-051-0/+33
| | | | | | | | | | | | | | | | | | | | | get it right on the next pass, don't forget the TCL_UTF_MAX padding demanded by Tcl_ExternalToUtf(). (Thanks for finding that, aku!) Fix the factorPtr management. It was just totaly wrong. The factor should be a ratio of the record of bytes read to the record of chars read. With those fixes, new test io-12.6 covers the "too many chars" code.
* | | merge trunkdkf2014-06-061-1/+1
|\ \ \ | |/ /
| * | These edits make the tests socket-14.11.[01] stop hanging, but also introducedgp2014-06-021-1/+1
| | | | | | | | | a whole raft of test failures. WIP.
* | | more tests, cleaning up the code a bitdkf2014-06-041-0/+29
| | |
* | | merge trunkdkf2014-06-031-60/+75
|\ \ \ | |/ /
| * | Improve robustness of the socket tests against systems that support IPv6, ↵max2014-06-021-60/+75
| | | | | | | | | | | | but don't resolve localhost to ::1 (and vice versa for IPv4 and 127.0.0.1).
* | | [1b0266d8bb] Working towards ensuring that all dict operations are ↵dkf2014-06-031-0/+42
|/ / | | | | | | sufficiently strict.
* | Correct the interest masks in the Tcl_CreateFileHandler() calls in ↵dgp2014-05-311-6/+0
|\ \ | | | | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
| * | Correct the interest masks in the Tcl_CreateFileHandler() calls indgp2014-05-311-6/+0
| |/ | | | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
* | Refinements of FlushChannel() and its callers. Notably includes removal of ↵dgp2014-05-291-7/+7
|\ \ | |/ | | | | the flag BUFFER_READY.
| * Increase size of test io-29.34 so that it more portably tests the case wheredgp2014-05-281-2/+2
| | | | | | | | the OS networking machinery gets backed up and blocks. Added several TODO comments on potential simplifications.
| * Comment out lines of test io-53.4 that appear to do nothing of any value.dgp2014-05-241-5/+5
| |
* | Fix c&p errors in test descriptionsmax2014-05-211-4/+4
| |
| |
| \
*-. \ Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, in ↵dgp2014-05-203-3/+18
|\ \ \ | | |/ | | | | | | particular not allowing them to leak between multiple layers of a stacked channel. Much common code refactored into ChanRead().
| | * Repair broken tests iogt-2.[123].dgp2014-05-171-0/+3
| | | | | | | | | | | | | | | | | | What happened is that now that EOF flags no loger leak acros channel stack layers, an EOF in the bottom channel isn't detected in the top one until the ChanRead call at the top level actually returns 0 bytes. This causes one more query/ma
| | * merge 8.5dgp2014-05-162-0/+82
| | |\
| | * \ merge 8.5dgp2014-05-141-0/+3
| | |\ \
| * | | | Revise results of tests iogt-2.[123] to account for EOF flags nodgp2014-05-171-0/+3
| | | | | | | | | | | | | | | longer leaking across channel stacks.
| * | | | merge trunkdgp2014-05-161-0/+79
| |\ \ \ \
| * \ \ \ \ merge trunkdgp2014-05-141-0/+3
| |\ \ \ \ \
| * \ \ \ \ \ Refactored much management of the BLOCKED and EOF flags into ChanRead() thendgp2014-05-132-3/+15
| |\ \ \ \ \ \ | | | |_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | began repairing some of the logic about them. Tests iogt-2.* now fail because they've been crafted as experiments recording the fine detail of reflected channel driver calls, and fixing the management of channel flags is changing that. zlib-8.5 also needed adjustment to reflect that an EOF set must come with an empty string read when flags are functioning properly.
| | * | | | | Salvaged what was left of value in the dgp-read-bytes-detour branch.dgp2014-05-131-2/+14
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored much management of the BLOCKED and EOF flags into ChanRead() then began repairing some of the logic about them. Tests iogt-2.* now fail because they've been crafted as experiments recording the fine detail of reflected channel driver calls, and fixing the management of channel flags is changing that.
| | | * | | | | Correct namespace bugs in normally skipped tests.dgp2014-03-211-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | Constrain them as "knownBug" rather than "unknownFailure".
| | | * | | | | Added comment explaining the "knownBug"dgp2014-03-211-0/+9
| | | | | | | |
| | | * | | | | Convert "impossible" test to a "knownBug" test. Exposes a segfault!dgp2014-03-211-4/+5
| | | | | | | |
| | | * | | | | Restore default suppression of large file test.dgp2014-03-211-1/+1
| | | | | | | |
| | | * | | | | io-34.21 - fix bugs in normally skipped test.dgp2014-03-211-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | io-35.18b - knownBug is not buggy on this branch.
* | | | | | | | Fix and improve socket -async [13d3af3ad5] oehhar2014-05-201-54/+436
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | |
| * | | | | | | * Give clearer names to some of the state flags and sync them with ↵bug_13d3af3ad5max2014-04-081-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Windows where it makes sense. * Rework WaitForConnect once more to always report ENOTCONN on I/O operations on failed async sockets. * Fix synchronous connections to a server that only listens on IPv6 (or whatever comes later in the list returned by getaddrinfo(), socket-15.*) * Fix spurious writable event on async sockets (socket-14.15).
| * | | | | | | Changed error report logic, that an async connect error is only reported by ↵oehhar2014-04-081-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'fconfigure -error' and not by a possible last command terminating the async connect. The terminating command always returns "socket is not connected" on connect error. In addition, some flags were renamed: TCP_ASYNC_SOCKET to TCP_NONBLOCKING and also the new state flags.
* | | | | | | | merge 8.5dgp2014-05-161-0/+79
|\ \ \ \ \ \ \ \ | |_|_|_|_|/ / / |/| | | | | | / | | |_|_|_|_|/ | |/| | | | |
| * | | | | | merge 8.5bug_io_32_11dgp2014-05-165-18/+54
| |\ \ \ \ \ \
| | * | | | | | Portable test to demo bug otherwise seen only on Windows.dgp2014-05-151-0/+20
| | | | | | | |
| | * | | | | | Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-151-0/+3
| | | |_|_|_|/ | | |/| | | | | | | | | | | | | | | | | | ':' in filenames as well)
| * | | | | | Merge completion of dgp-read-bytes branch.dgp2014-05-165-10/+232
| |\ \ \ \ \ \
| * | | | | | | More tests to demo the bug more directly.dgp2014-05-161-0/+39
| | | | | | | |
| * | | | | | | Branch to demo bug introduced in the parent commit.dgp2014-05-151-0/+20
| | | | | | | |
* | | | | | | | Fix 3 test-cases which started failing on Windowsjan.nijtmans2014-05-141-0/+3
|\ \ \ \ \ \ \ \ | | |_|/ / / / / | |/| | | / / / | |_|_|_|/ / / |/| | | | | |