summaryrefslogtreecommitdiffstats
path: root/tests/io.test
Commit message (Collapse)AuthorAgeFilesLines
* Same patch re-enabling read after EOF, but here applied to 8.6.dgp2014-11-031-0/+20
|\ | | | | Likely additional changes needed in the other channel transforms new in 8.6.
| * Base test for [5adc350683].dgp2014-10-291-0/+20
| |
* | [10dc6daa37] New fix for [gets] on non-blocking channel. This time properly ↵dgp2014-10-181-0/+104
|\ \ | |/ | | | | accounts for the effects of ENCODING_LINESIZE.
| * [10dc6daa37] New fix for [gets] on non-blocking channel. This timedgp2014-10-181-0/+104
| |\ | | | | | | properly accounts for the effects of ENCODING_LINESIZE.
| | * [10dc6daa37] [gets] on a non-blocking channel must take care so thatdgp2014-10-171-0/+68
| |/ | | | | | | | | | | | | 1) At least one call to the channel driver input proc gets made. Failure to do this locks up the channel - catastrophic FAIL. 2) After any driver call reports BLOCKED, don't call again. This is less serious, but FAILs to respect the non-blocking setting. Code corrections and tests included, to restore 8.5.15 compat.
| * backport those tests that can bedgp2014-10-101-0/+62
| |
* | Another test so both DoRead and MBRead are covered.dgp2014-10-101-0/+44
| |
* | New test io-53.15 for [ed29c4da21].dgp2014-10-101-0/+44
|\ \ | |/
| * New test io-53.15 for [ed29c4da21].dgp2014-10-101-0/+45
| |
* | [bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.dgp2014-10-021-0/+33
|\ \ | |/
| * [bc5b790099] Improper calculation of new dstLimit value. New test io-12.7.dgp2014-10-021-0/+33
| |
* | merge 8.5; fix notifier mask bug and Tcl_Read performance regressiondgp2014-08-221-1/+4
|\ \ | |/
| * Make test io-36.1.1 more portable.dgp2014-08-201-1/+4
| |
* | Test format of write error messages during binary [chan copy]dgp2014-07-241-0/+30
| |
* | Test read error during binary [chan copy].dgp2014-07-241-0/+30
| |
* | Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-161-5/+7
| | | | | | | | 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.
* | dup test namedgp2014-07-101-1/+1
|\ \ | |/
| * dup test namedgp2014-07-101-1/+1
| |
* | [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.
* | 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.
* | 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
| |
| * merge 8.5dgp2014-05-161-0/+79
| |\
| * \ merge 8.5dgp2014-05-141-0/+3
| |\ \
* | \ \ merge trunkdgp2014-05-161-0/+79
|\ \ \ \
| * \ \ \ merge 8.5dgp2014-05-161-0/+79
| |\ \ \ \ | | | |_|/ | | |/| |
| | * | | merge 8.5bug_io_32_11dgp2014-05-161-4/+27
| | |\ \ \
| | | * | | Portable test to demo bug otherwise seen only on Windows.dgp2014-05-151-0/+20
| | | | |/ | | | |/|
| | * | | Merge completion of dgp-read-bytes branch.dgp2014-05-161-10/+38
| | |\ \ \
| | * | | | 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
| | | | | |
* | | | | | merge trunkdgp2014-05-141-0/+3
|\ \ \ \ \ \ | |/ / / / /
| * | | | | Fix 3 test-cases which started failing on Windowsjan.nijtmans2014-05-141-0/+3
| |\ \ \ \ \ | | | |_|/ / | | |/| | |
| | * | | | Fix 3 test-cases which started failing on Windowsjan.nijtmans2014-05-141-0/+3
| | | | | |
* | | | | | Refactored much management of the BLOCKED and EOF flags into ChanRead() thendgp2014-05-131-2/+14
|\ \ \ \ \ \ | |/ / / / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | 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.
| | * | | 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.
* | | | Restore the largefileSupport constraint on Darwin, where tests (chan)io-34.21dgp2014-05-121-1/+1
|\ \ \ \ | |/ / / | | | | take an unbearable 90 seconds each to complete.
| * | | Restore the largefileSupport constraint on Darwin, where tests (chan)io-34.21dgp2014-05-121-1/+1
| | | | | | | | | | | | take an unbearable 90 seconds each to complete.
* | | | Tests (chan)io-34.21 are constrained for largefileSupport, and that's ↵dgp2014-05-091-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | disabled by default, which means never tested, which means the ridiculous bugs in them are never found and fixed. Fixed the bugs, changed the default. Large File Suppport (4GB) is commonplace now. Let those without it suffer a few failing tests reporting that fact to them.
| * | | Tests (chan)io-34.21 are constrained for largefileSupport, and that'sdgp2014-05-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disabled by default, which means never tested, which means the ridiculous bugs in them are never found and fixed. Fixed the bugs, changed the default. Large File Suppport (4GB) is commonplace now. Let those without it suffer a few failing tests reporting that fact to them.
| | | |
| \ \ \
*-. \ \ \ Merge the reforms of dgp-trunk-read branch into trunk. (port of dgp-read-bytes)dgp2014-05-081-1/+176
|\ \ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Large overhaul of I/O read operations - Protects integer overflow of buffers, reusing append machinery - Forces -buffersize changes to take place when commanded - Uses assertions to simplify code in "can't happen" situations - Eliminated duplication of -translation processing - Fixes bugs io-35.18b and io-35.20
| | * | | Merge the reforms of dgp-read-bytes branch into 8.5+ releases.dgp2014-05-081-1/+157
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Large overhaul of I/O read operations - Protects integer overflow of buffers, reusing append machinery - Forces -buffersize changes to take place when commanded - Uses assertions to simplify code in "can't happen" situations - Eliminated duplication of -translation processing - Fixes bugs io-35.18b and io-35.20
| * | | | Add test io-53.12 to verify proper unbuffered sync-fcopy [Bug #3096275]ferrieux2014-03-241-0/+19
| | | | |