summaryrefslogtreecommitdiffstats
path: root/tests/io.test
Commit message (Collapse)AuthorAgeFilesLines
* No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+4
| | | | combination with tcltest86.dll to do that (Windows only)
* 3530533 Add comments to failing tests.dgp2012-06-051-0/+6
|\
| * 3530533 Add comments to failing tests.dgp2012-06-051-0/+6
| |
* | Increase the timer resolution of test io-29.33b so the timing sensitivitydgp2012-05-221-3/+3
| | | | | | of the test is reduced and failures on slow runs are avoided.
* | Mention compatibility matters in Changelog. Make test insensitive to ambient ↵ferrieux2012-04-301-0/+1
| | | | | | | | compat flag.
* | Compat flag, test, and doc update.tip_398_implferrieux2012-04-281-1/+20
| |
* | revert test-case change for [Bug 2935503]jan.nijtmans2011-10-131-3/+3
|\ \ | |/
| * revert test-case from [Bug 2935503]jan.nijtmans2011-10-131-3/+3
| |\
| | * revert test-case change from [Bug 2935503]jan.nijtmans2011-10-131-3/+3
| | |
* | | [Bug 2935503] Incorrect mode field returned by file stat commandjan.nijtmans2011-10-111-4/+4
|\ \ \ | |/ /
| * | [Bug 2935503] Incorrect mode field returned by file stat commandjan.nijtmans2011-10-111-4/+4
| |\ \ | | |/
| | * [Bug 2935503] Incorrect mode field returned by file stat commandjan.nijtmans2011-10-111-3/+3
| | |
* | | 3389733 Convert [testthread] use to Thread package use in *io-70.1.dgp2011-09-091-25/+8
| | | | | | | | | Eliminates a memory leak in `make valgrind`.
* | | 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.
| | * Now that we're no longer using SCM based on RCS, the RCS Keyword lines causedgp2011-03-011-2/+0
| | | | | | | | | more harm than good. Purged them.
| | * * generic/tclIO.c (CopyData): [Bug 2895565]. Dropped bogosityandreas_kupries2009-11-121-1/+32
| | | | | | | | | | | | | | | | | | * tests/io.test: which used the number of _written_ bytes or character to update the counters for the read bytes/characters. New test io-53.11. This is a backward port from the 8.5 branch.
| | * * tests/binary.test: Corrected flawed tests revealed by a -debug 1dgp2008-06-201-3/+3
| | | | | | | | | | | | * tests/io.test: -singleproc 1 test suite run.
| | * * tests/io.test (io-53.9): need to close chan before removing file.hobbs2008-05-261-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> 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>, 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 comment regarding the meaning of -1, added two more testcases for other negative values, and input wrapped to negative.
| | * * tests/io.test (io-52.5): Removed '-size -1' from test, does notandreas_kupries2008-04-091-2/+2
| | | | | | | | | | | | | | | | | | seem to have any bearing, and was an illegal value. Test case is not affected by the value of -size, test flag restoration and that everything was properly copied.
| | * * tests/io.test (io-53.8,53.9,53.10): Backported das' fix of typoandreas_kupries2008-04-081-4/+4
| | | | | | | | | | | | and quoting for spaces in builddir path.
| | * * tests/io.test (io-53.10): Testcase for bi-directionaly fcopy.andreas_kupries2008-04-071-1/+71
| | | | | | | | | | | | | | | | | | | | | * 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.
| | * * generic/tclIO.c (BUSY_STATE, CheckChannelErrors,andreas_kupries2008-04-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TclCopyChannel): New macro, and the places using it. This change allows for bi-directional fcopy on channels. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for the patch. * tests/io.test (io-53.9): Made test cleanup robust against the possibility of slow process shutdown on Windows. Backported from Kevin Kenny's change to the same test on the 8.5 and head branches.
| | * * tests/io.test (io-53.9): Added testcase for [Bug 780533], basedandreas_kupries2008-04-041-3/+51
| | | | | | | | | | | | | | | 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 the first time. Thanks to Alexandre Ferrieux <ferrieux@users.sourceforge.net> for report and patch.
| | * * generic/tclEncoding.c (EscapeFromUtfProc): Applied patchandreas_kupries2007-02-121-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | supplied by Mo DeJong to fix [Bug 1516109]. Backport from Tcl 8.5. Mo's description: Clear the TCL_ENCODING_END flag when end bytes are written. This fix keep this method from writing escape bytes for an encoding like iso2022-jp multiple times when the escape byte overlap with the end of the IO buffer. * tests/io.test: Add test case for escape byte overlap case.
| | * * tests/io.test (io-43.1 io-44.[1234]): Rewritten to beandreas_kupries2006-03-161-23/+43
| | | | | | | | | | | | self-contained with regard to setup and cleanup. [Bug 681793].
| | * * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need * tests/iogt.test: for this change was proven by Ross Cartlidge <rossc@cisco.com> where [read stdin 1] was grabbing 10 bytes followed by starting a child process that was intended to continue reading from stdin. Even with -buffersize set to one, nine chars were getting lost by the buffersize over reading for the native read() caused by [read].
| | * TIP#218 IMPLEMENTATIONandreas_kupries2005-01-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclDecls.h: Regenerated from tcl.decls. * generic/tclStubInit.c: * doc/CrtChannel.3: Documentation of extended API, * generic/tcl.decls: extended testsuite, and * generic/tcl.h: implementation. Removal of old * generic/tclIO.c: driver-specific TclpCut/Splice * generic/tclInt.h: functions. Replaced with generic * tests/io.test: thread-action calls through the * unix/tclUnixChan.c: new hooks. Update of all builtin * unix/tclUnixPipe.c: channel drivers to version 4. * unix/tclUnixSock.c: Windows drivers extended to * win/tclWinChan.c: manage thread state in a thread * win/tclWinConsole.c: action handler. * win/tclWinPipe.c: * win/tclWinSerial.c: * win/tclWinSock.c: * mac/tclMacChan.c:
| | * * tests/fileName.test:das2004-11-111-2/+2
| | | | | | | | | | | | | | | | | | | | | * tests/fileSystem.test: * tests/io.test: * tests/tcltest.test: fixed bugs causing failures when running tests with -tmpdir arg not set to working dir.
| | * * tests/appendComp.test: Backport test suite fixes of errorsdgp2004-10-281-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/autoMkindex.test: revealed by -singleproc 1 -debug 1 * tests/exec.test: options to make test. * tests/execute.test: * tests/interp.test: * tests/io.test: * tests/namespace.test: * tests/regexpComp.test: * tests/stringComp.test: * tests/unixInit.test: * tests/winPipe.test:
| | * (io-61.1): create file in binary mode for x-platcore_8_4_7hobbs2004-07-261-1/+2
| | |
| | * * tests/eofchar.data (removed): Test io-61.1 now generates its owndgp2004-07-231-8/+14
| | | | | | | | | | | | * tests/io.test: file of test data as needed.
| | * * generic/tclIO.c (Tcl_SetChannelOption): Fixed [SF Tcl Bugandreas_kupries2004-04-231-1/+18
| | | | | | | | | | | | | | | 930851]. When changing the eofchar we have to zap the related flags to prevent them from prematurely aborting the next read.
| | * * tests/basic.test: Made several tests more robust to thedgp2004-02-251-40/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/cmdMZ.test: list-quoting of path names that might * tests/exec.test: contain Tcl-special chars like { or [. * tests/io.test: Should help us sort out Tcl Bug 554068. * tests/pid.test: * tests/socket.test: * tests/source.test: * tests/unixInit.test:
| | * * tests/exec.test: Corrected temporary file managementdgp2003-10-071-366/+364
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/fileSystem.test: issues uncovered by -debug 1 test * tests/io.test: operations. Also backported some * tests/ioCmd.test: other fixes from the HEAD. * tests/pid.test: [Bugs 675605, 675655, 675659] * tests/socket.test: * tests/source.test:
| | * * tests/io.test: Corrected several tests that failed when pathsdgp2003-10-071-22/+13
| | | | | | | | | | | | * tests/ioCmd.test: included regexp-special chars. [Bug 775394]
| * | [Bug 3148192]: Commands "read/puts" incorrectly interpret parameters.nijtmans2011-01-171-2/+2
| | | | | | | | | | | | Improved error-message regarding legacy form.
| * | [backport] Make sure [fcopy -size ... -command ...] always calls the ↵ferrieux2010-12-101-1/+39
| | | | | | | | | | | | callback asynchronously, even for size zero.
| * | * tests/io.test: New test io-53.11 to test for [Bug 2895565].dgp2009-11-121-1/+32
| | |
| * | * generic/tclIO.c (SetChannelFromAny and related): Modified theandreas_kupries2008-12-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | * tests/io.test: internal representation of the tclChannelType to contain not only the ChannelState pointer, but also a reference to the interpreter it was made in. Invalidate and recompute the internal representation when it is used in a different interpreter (Like cmdName intrep's). Added testcase. [Bug 2407783].
| * | * 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:
| * | (io-53.9): need to close chan before removing filehobbs2008-05-261-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.
| * | * 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.