summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
Commit message (Collapse)AuthorAgeFilesLines
* [104f2885bb] Rework the "chan" Tcl_ObjType to properly validate cached ↵dgp2016-07-181-4/+19
|\ | | | | | | | | channel name lookups. Also merge backlog of test suite & doc improvements.
| * [77d58e3a7a] Test case independence: chanio, cmdah, env, history.dkf2016-07-141-4/+19
| |
* | Eliminate exess spacings in many test-casesjan.nijtmans2016-03-101-24/+24
|/
* Modify the "gettimes" test-command to use the Tcl_Obj API. jan.nijtmans2014-07-161-5/+11
| | | | 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.
* 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.
* | [Bug 3605120]: Stop test chan-io-28.7 from hanging when run standalone.dkf2013-02-261-5/+9
| |
* | Let all test-cases which require Thread, at least require Thread 2.7jan.nijtmans2012-11-161-1/+1
| |
* | No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+3
| | | | | | | | combination with tcltest86.dll to do that (Windows only)
* | Release the right thread! D'oh!dgp2011-09-091-1/+1
| |
* | 3389733 Convert [testthread] use to Thread package use in chan-io-70.1.dgp2011-09-091-20/+8
| | | | | | Eliminates a memory leak in `make valgrind TESTFLAGS="-file chanio.test"`.
* | Correct test suite errors revealed by a -singleproc 1 -debug 1 run.dgp2011-07-071-1/+1
| |
* | 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.
| * [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-2/+2
| | | | | | | | Improved error-message regarding legacy form.
| * * generic/tclInterp.c: Fixed completely boneheaded mistake thatdgp2008-06-201-3/+3
| | | | | | | | | | | | | | | | | | * tests/interp.test: [interp bgerror $slave] and [$slave bgerror] would always act like [interp bgerror {}]. [Bug 1999035]. * tests/chanio.test: Corrected flawed tests revealed by a -debug 1 * tests/event.test: -singleproc 1 test suite run. * tests/io.test:
| * * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
| * * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-151-1/+41
| | | | | | | | | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, * chanio.test (chan-io-53.8a): to shift EOF handling to the async part of the command if a callback is specified, should the channel be at EOF already when fcopy is called. Testcase by myself.
| * * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-101-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
| * * tests/chanio.test (chan-io-52.5): Removed '-size -1' from test,andreas_kupries2008-04-091-2/+2
| | | | | | | | | | * tests/io.test (io-52.5): does not seem to have any bearing, and was an illegal value.
| * * tests/chanio.test (chan-io-53.8,53.9,53.10): fix typo & quoting fordas2008-04-081-4/+4
| | | | | | | | * tests/io.test (io-53.8,53.9,53.10): spaces in builddir path
| * Corrected test name.andreas_kupries2008-04-071-2/+2
| |
| * * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-071-1/+71
| | | | | | | | | | | | | | | | * tests/chanio.test: * generic/tclIO.c: Additional changes to data structures for fcopy * generic/tclIO.h: and channels to perform proper cleanup in case of a channel having two background copy operations running as is now possible.
| * * tests/chanio.test (chan-io-53.9):Kevin B Kenny2008-04-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. * win/tcl.m4: Added -D_CRT_SECURE_NO_DEPRECATE and -DCRT_NONSTDC_NO_DEPRECATE to the MSVC compilation flags so that the compilation doesn't barf on perfectly reasonable Posix system calls. * win/configure: Manually patched (don't have the right autoconf to hand).
| * * tests/io.test (io-53.9): Added testcase for [Bug 780533], basedandreas_kupries2008-04-041-3/+51
| | | | | | | | | | | | * tests/chanio.test: on Alexandre's test script. Also fixed problem with timer in preceding test, was not canceled properly in the ok case.
| * * generic/tclIO.c (CopyData): Applied patch [Bug 1932639] toandreas_kupries2008-04-031-1/+46
| | | | | | | | | | | | * tests/io.test: prevent fcopy from calling -command synchronously * tests/chanio.test: the first time. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for report and patch.
* | [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-2/+2
| | | | | | | | Improved error-message regarding legacy form.
* | * tests/chanio.test, tests/iogt.test, tests/ioTrans.test: Convert moredkf2010-11-241-300/+223
| | | | | | | | tests to tcltest2 and factor them to be easier to understand.
* | More conversion of tcltest1 tests to tcltest2dkf2010-11-211-483/+521
| |
* | * tests/chanio.test: Converted many tests to tcltest2 by marking thedkf2010-11-201-1172/+1328
| | | | | | | | setup and cleanup parts as such.
* | Fix tests with known dependencies on hash iteration order.dkf2010-02-071-4/+5
| |
* | Test-case for fixed [Bug 2849797]nijtmans2009-11-191-5/+5
| | | | | | | | | | | | Fix safe-10.1 and safe-10.4 test cases, making the wrong assumption that Tcltest should be a static package.
* | * tests/chanio.test: Add missing [removeFile] cleanups.dgp2008-12-191-5/+11
| |
* | * tests/chanio.test: Replaced [chan event] handlers thatdgp2008-12-191-5/+11
| | | | | | | | | | | | returned TCL_RETURN return code, with more conventional ones that return TCL_OK to suppress otherwise strange writes of outdated $::errorInfo values to stderr. [Bug 2444274].
* | * generic/tclIO.c (Tcl_CloseEx,CloseWrite,CloseChannelPart,ChanCloseHalf):andreas_kupries2008-12-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Rewrite the half-close to properly flush the channel, like is done for a full close, going through FlushChannel, and using the flag BG_FLUSH_SCHEDULED (async flush during close). New functions CloseWrite, CloseChannelPart, new flag CHANNEL_CLOSEDWRITE. * tests/chanio.test (chanio-28.[67]): Reactivated these tests. Replaced tclsh -> [interpreter] to get correct executable for the pipe process, and added after cancel to kill the fail timers when we are done. Removed the explicits calls to [flush], now that [close] handles this correctly.
* | Converted 'if 0' into 'knownBug' constraintsdkf2008-12-181-242/+80
| |
* | Temporarily disable half-close test because of issue in tcltest cleanupferrieux2008-12-181-3/+3
| |
* | TIP #332 IMPLEMENTATION - Half-Close for Bidirectional Channelsferrieux2008-12-181-2/+51
| |
* | * changes: Updates for 8.6a1 release.dgp2008-06-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclInterp.c: Fixed completely boneheaded mistake that * tests/interp.test: [interp bgerror $slave] and [$slave bgerror] would always act like [interp bgerror {}]. [Bug 1999035]. * tests/chanio.test: Corrected flawed tests revealed by a -debug 1 * tests/cmdAH.test: -singleproc 1 test suite run. * tests/event.test: * tests/interp.test: * tests/io.test: * tests/ioTrans.test: * tests/namespace.test:
* | sync with 2008-05-26 io-53.9 changedas2008-06-121-1/+2
| |
* | * win/tclWinChan.c (FileWideSeekProc): Accepted a patch byandreas_kupries2008-05-231-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | Alexandre Ferrieux <ferrieux@users.sourceforge.net> to fix the [Bug 1965787]. 'tell' now works for locations > 2 GB as well instead of going negative. * generic/tclIO.c (Tcl_SetChannelBufferSize): Accepted a patch by * tests/io.test: Alexandre Ferrieux <ferrieux@users.sourceforge.net> * tests/chanio.test: to fix the [Bug 1969953]. Buffersize outside of the supported range are now clipped to nearest boundary instead of ignored.
* | Assorted improvements to make better use of tcltest2dkf2008-04-231-45/+50
| |
* | * generic/tclIO.c (CopyData): Applied another patch by Alexandreandreas_kupries2008-04-151-1/+41
| | | | | | | | | | | | | | * io.test (io-53.8a): Ferrieux <ferrieux@users.sourceforge.net>, * chanio.test (chan-io-53.8a): to shift EOF handling to the async part of the command if a callback is specified, should the channel be at EOF already when fcopy is called. Testcase by myself.
* | * generic/tclIOCmd.c (Tcl_FcopyObjCmd): Keeping check for negativeandreas_kupries2008-04-101-3/+37
| | | | | | | | | | | | | | | | | | | | | | | | values, changed to not be an error, but behave like the special value -1 (copy all, default). * tests/iocmd.test (iocmd-15.{12,13}): Removed. * tests/io.test (io-52.5{,a,b}): Reverted last change, added * tests/chanio.test (chan-io-52.5{,a,b}): comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
* | * tests/chanio.test (chan-io-52.5): Removed '-size -1' from test,andreas_kupries2008-04-091-2/+2
| | | | | | | | | | * tests/io.test (io-52.5): does not seem to have any bearing, and was an illegal value.
* | * tests/chanio.test (chan-io-53.8,53.9,53.10): fix typo & quoting fordas2008-04-081-4/+4
| | | | | | | | * tests/io.test (io-53.8,53.9,53.10): spaces in builddir path
* | * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-071-1/+71
| | | | | | | | | | | | | | | | * tests/chanio.test: * generic/tclIO.c: Additional changes to data structures for fcopy * generic/tclIO.h: and channels to perform proper cleanup in case of a channel having two background copy operations running as is now possible.
* | * tests/chanio.test (chan-io-53.9):Kevin B Kenny2008-04-061-3/+5
| | | | | | | | | | | | | | | | | | | | | | * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. * win/tcl.m4: Added -D_CRT_SECURE_NO_DEPRECATE and -DCRT_NONSTDC_NO_DEPRECATE to the MSVC compilation flags so that the compilation doesn't barf on perfectly reasonable Posix system calls. * win/configure: Manually patched (don't have the right autoconf to hand).