summaryrefslogtreecommitdiffstats
path: root/tests/chanio.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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. FossilOrigin-Name: 411fe1ce4db2d5c7fc7aa606a0dd177f3b954f2a
* More conversion of tcltest1 tests to tcltest2dkf2010-11-211-483/+521
| | | FossilOrigin-Name: 0e2f5a7990f02a79f30874a61608d7a41a830983
* * tests/chanio.test: Converted many tests to tcltest2 by marking thedkf2010-11-201-1172/+1328
| | | | | | setup and cleanup parts as such. FossilOrigin-Name: 839e019f625a61d06c2389a76bdedc3c2c7285d3
* Fix tests with known dependencies on hash iteration order.dkf2010-02-071-4/+5
| | | FossilOrigin-Name: 6df1a049cd9c5af43522992fc5de41398b1fc905
* 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. FossilOrigin-Name: a1f10986608de4cd38028374e1936207c6142206
* * tests/chanio.test: Add missing [removeFile] cleanups.dgp2008-12-191-5/+11
| | | FossilOrigin-Name: 6c62c0ca9c5b13365992568ee870a66c92ce2e2d
* * 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]. FossilOrigin-Name: ecb6fb920452e71744aa690853245dcadbd398a3
* * 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. FossilOrigin-Name: 2cb6ab45d5f427b4f570bf7b14592a5b5d93edf4
* Converted 'if 0' into 'knownBug' constraintsdkf2008-12-181-242/+80
| | | FossilOrigin-Name: d68e23fd09f5d6d2ad61c0e34b2ff97e8a0b72ba
* Temporarily disable half-close test because of issue in tcltest cleanupferrieux2008-12-181-3/+3
| | | FossilOrigin-Name: 2df3f7408eba7155477df58a564c6a33b23897d6
* TIP #332 IMPLEMENTATION - Half-Close for Bidirectional Channelsferrieux2008-12-181-2/+51
| | | FossilOrigin-Name: d4d9fb31682d0183fbea23f52b103571be8c9529
* * 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: FossilOrigin-Name: 8e76f8584990fdf4255ba99c1084fc9410396a99
* sync with 2008-05-26 io-53.9 changedas2008-06-121-1/+2
| | | FossilOrigin-Name: 78c5f73eb5bb75c05733e18c94f10b9ae386f301
* * 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. FossilOrigin-Name: f337d855cc36f5c956e12db5e587a51534242867
* Assorted improvements to make better use of tcltest2dkf2008-04-231-45/+50
| | | FossilOrigin-Name: b0326f65364fb54123028d5965d3a08f922cf06e
* * 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. FossilOrigin-Name: f8664c06387f7e8f582710632ba93af81612df98
* * 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. FossilOrigin-Name: 8c082b4a258616ed28a3e54ab724c8ca2ee1359e
* * 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. FossilOrigin-Name: 56949462380b24f9a7ef851dc9e12ed60a8c04f0
* * 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 FossilOrigin-Name: 786bc32e7b3d06650baac2a55acbb8f5862855e6
* * 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. FossilOrigin-Name: 8b118596fbb006f6cc13ef7e2b5897cc16c8e4c6
* * tests/chanio.test (chan-io-53.9):kennykb2008-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). FossilOrigin-Name: 68b47f3256ec24f69543544a3b765d731ee840d8
* * 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. FossilOrigin-Name: 2dcb8b9dd426de62ef5a555c3f17f9a9f6c61f31
* * 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. FossilOrigin-Name: d72429b721fa469993c15e5545643ee8d9c1a20a
* merge stable branch onto HEADdgp2007-12-131-1/+1
| | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* * tests/io.test, tests/chanio.test (io-73.1): Make sure to invalidatehobbs2007-12-091-1/+6
| | | | | | | * generic/tclIO.c (SetChannelFromAny): internal rep only after validating channel rep. [Bug 1847044] FossilOrigin-Name: 0404d916bda5f4b34fd0e40102582f9ad9b9500b
* * tests/chanio.test: New file. This is essentially a duplicate ofandreas_kupries2007-11-141-0/+7463
'io.test', with all channel commands converted to their 'chan xxx' notation. * tests/io.test: Fixed typo in test description. FossilOrigin-Name: 5292b7a1338df270a03db0dc2fb9238faccba46a