summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Make sure the "sockettest" command is available even when running ↵jan.nijtmans2014-07-181-2/+7
| | | | socket.test individually.
* merge trunkjan.nijtmans2014-07-1824-264/+506
|\
| * Finally, use correct octal notation which works in Tcl 9 as well.jan.nijtmans2014-07-175-59/+59
| |
| * Make sure that all "testchmod" arguments start with '0', making it more ↵jan.nijtmans2014-07-174-85/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | obvious that the value is octal. dgp: Isn't the better way to make it obvious the values are octal to use the explicit octal notation? For example, [testchmod 0o777 $path] ? Really seems like a bad idea to me to introduce *more* incompatibilities for the planned conversion for having the value 0777 stop meaning 255 and start meaning 777 in Tcl 9. Answer (Jan). You guessed exactly what's my follow-up plan. This was an intermediate step which keeps all test-cases running.
| * Convert some non-ASCII characters in testcase comments - which were mangled ↵jan.nijtmans2014-07-172-7/+7
| | | | | | | | by my editor in [79ace7b793] - to valid UTF-8: This way my editor will not mangle them again, and fossil will show in the UI which characters are supposed to be there.
| * Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-169-92/+111
| | | | | | | | New "testbytestring" command which can be used to replace the (to-be-deprecated) "bytestring" command from tcltest and/or the "indentity" encoding. Adapt many testcases to use the "testbytestring" command.
| * Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no ↵jan.nijtmans2014-07-111-15/+15
| |\ | | | | | | | | | | | | longer a whitespace, but for Tcl it still is. Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
| | * Starting with Unicode 6.3, the mongolian vowel separator (U+180e) is no ↵jan.nijtmans2014-07-111-15/+15
| | | | | | | | | | | | | | | | | | longer a whitespace, but for Tcl it still is. "NEL/Next Line" (U+0085) should have been a Unicode whitespace, but never was in Tcl. This is corrected in Tcl 8.6, but for legacy reasons not in Tcl 8.5. Update documentation accordingly, and extend test-cases for Unicode 7 compliance.
| * | makeFile / removeFile balance.dgp2014-07-101-1/+3
| | |
| * | makeFile / removeFile balancedgp2014-07-101-0/+8
| | |
| * | dup test namedgp2014-07-101-1/+1
| |\ \ | | |/
| | * dup test namedgp2014-07-101-1/+1
| | |
| * | [f652ae79ed] Close sockets used in tests, so as not to corrupt otherdgp2014-07-101-0/+1
| | | | | | | | | tests in the suite.
| * | [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
| |\ \ \ | | |/ /
| * | | more tests, cleaning up the code a bitdkf2014-06-041-0/+29
| | | |
| * | | merge trunkdkf2014-06-031-60/+75
| |\ \ \
| * | | | [1b0266d8bb] Working towards ensuring that all dict operations are ↵dkf2014-06-031-0/+42
| | | | | | | | | | | | | | | | | | | | sufficiently strict.
* | | | | Replaced option "-unsupported1" by test command "testsocket debugflags" ↵oehhar2014-07-171-6/+9
| | | | | | | | | | | | | | | | | | | | (thanks Donal, Donald).
* | | | | Robust async connect tests by temporarely switching off auto continuation. ↵oehhar2014-06-051-2/+13
| |_|/ / |/| | | | | | | | | | | Ticket [13d3af3ad5]
* | | | 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.
* | | 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).
* | 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".