summaryrefslogtreecommitdiffstats
path: root/tests/io.test
Commit message (Collapse)AuthorAgeFilesLines
* * generic/tclEncoding.c (EscapeFromUtfProc):mdejong2006-12-271-1/+61
| | | | | | | | | | | 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 for escape byte overlap issue.
* Keep most tests from making sockets that are reachable off the machine.dkf2006-11-031-25/+27
|
* * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-2/+2
| | | | | | | | | | | | | | | | | | * doc/fconfigure.n, doc/interp.n, doc/unknown.n: * library/auto.tcl, library/init.tcl, library/package.tcl: * library/safe.tcl, library/tm.tcl, library/msgcat/msgcat.tcl: * tests/all.tcl, tests/basic.test, tests/cmdInfo.test: * tests/compile.test, tests/encoding.test, tests/execute.test: * tests/fCmd.test, tests/http.test, tests/init.test: * tests/interp.test, tests/io.test, tests/ioUtil.test: * tests/iogt.test, tests/namespace-old.test, tests/namespace.test: * tests/parse.test, tests/pkg.test, tests/pkgMkIndex.test: * tests/proc.test, tests/reg.test, tests/trace.test: * tests/upvar.test, tests/winConsole.test, tests/winFCmd.test: * tools/tclZIC.tcl: * generic/tclParse.c (Tcl_ParseCommand): Replace {expand} with {*} officially (TIP #293). Leave -DALLOW_EXPAND=0|1 option to keep {expand} syntax for transition users. [Bug 1589629]
* * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-091-7/+7
| | | | | | | | | | | | | | global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the global namespace, that feature is tested specifically in namespace and variable tests. The modified testfiles are: apply.test, basic.test, case.test, cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test, event.test, expr.test, fileSystem.test, for.test, http.test, if.test, incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test, misc.test, namespace.test, parse.test, parseOld.test, pkg.test, proc-old.test, set.test, switch.test, tcltest.test, thread.test, var.test, while-old.test, while.test.
* Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-12/+5
| | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file
* * tests/io.test (io-43.1 io-44.[1234]): Rewritten to beandreas_kupries2006-03-161-19/+36
| | | | self-contained with regard to setup and cleanup. [Bug 681793].
* TIP#219 IMPLEMENTATIONandreas_kupries2005-08-241-8/+269
| | | | | | | | | | | | | | | | | | | | | | | | | | * doc/SetChanErr.3: ** New File **. Documentation of the new channel API functions. * generic/tcl.decls: Stub declarations of the new channel API. * generic/tclDecls.h: Regenerated * generic/tclStubInit.c: * tclIORChan.c: ** New File **. Implementation of the reflected channel. * generic/tclInt.h: Integration of reflected channel and new error * generic/tclIO.c: propagation into the generic I/O core. * generic/tclIOCmd.c: * generic/tclIO.h: * library/init.tcl: * tests/io.test: Extended testsuite. * tests/ioCmd.test: * tests/chan.test: * generic/tclTest.c: * generic/tclThreadTest.c: * unix/Makefile.in: Integration into the build machinery. * win/Makefile.in: * win/Makefile.vc:
* Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-1/+1
|
* * generic/tclIO.c (Tcl_SetChannelBufferSize): Lowest size limitdavygrvy2005-04-141-2/+2
| | | | | | | | | * tests/io.test: changed from ten bytes to one byte. Need 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 buffer size over reading for the native 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:
* * tests/basic.test: Updated functional (not testing) uses ofdgp2004-11-181-12/+37
| | | | | | | | * tests/io.test: [bgerror] to make use of [interp bgerror]. * tests/socket.test: * tests/timer.test: * generic/tclInterp.c: Corrected [interp bgerror] error message.
* * tests/fileName.test:das2004-11-111-3/+3
| | | | | | | | | * tests/fileSystem.test: * tests/io.test: * tests/msgcat.test: * tests/tcltest.test: * tests/unixInit.test: fixed bugs causing failures when running tests with -tmpdir arg not set to working dir.
* typo fixdgp2004-10-311-2/+2
|
* Turn umask2 constraint into something more commonly satisfiabledkf2004-10-311-85/+39
| | | | Also turn conditional tests into constrained tests
* * tests/clock.test: Correct duplicate test names.dgp2004-10-281-3/+3
| | | | | | * tests/namespace.test: * tests/string.test: * tests/io.test (io-50.4): Use namespace variables.
* * tests/io.test: Make io-61.1 create file as binary to pass on Win32patthoyts2004-07-251-1/+2
|
* * tests/eofchar.data (removed): Test io-61.1 now generates its owndgp2004-07-231-6/+13
| | | | * tests/io.test: file of test data as needed.
* tests/io.test: Changed several tests to run the eventKevin B Kenny2004-07-021-13/+14
| | | | | | loop rather than just calling [update] periodically, avoiding intermittent failures (usually in io-29.32) that stemmed from unreaped processes on Windows.
* * tests/io.test: Added -force to 18.1 and 18.2. This was failingpatthoyts2004-06-231-3/+3
| | | | on WinXP.
* Standardize some use of test constraints onto names that are documenteddkf2004-06-231-13/+13
|
* reverted back to 1.53davygrvy2004-06-011-7/+7
|
* * tests/io.test:davygrvy2004-06-011-7/+7
| | | | | | | * tests/iogt.test: Tests cases that set invalid -buffersize settings on channels either wrapped in a catch or modified to a valid range. The assertion results were not modified to show that the behavior of Tcl_SetChannelBufferSize is unchanged.
* io-61.1: initialize resdgp2004-05-251-1/+2
|
* * tests/http.test: Clear away the custom [bgerror] when done.dgp2004-05-251-3/+3
| | | | * tests/io.test: Take care to use namespace variables.
* * generic/tclIO.c (Tcl_SetChannelOption): Fixed [SF Tcl Bugandreas_kupries2004-04-231-1/+16
| | | | | 930851]. When changing the eofchar we have to zap the related flags to prevent them from prematurely aborting the next read.
* Removed support for Mac OS Classic platform [Patch 918142]das2004-03-171-13/+3
|
* * 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:
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/Tcl.n: of the new leading {expand} syntax on words. * generic/tcl.h: Parses such words as the new Tcl_Token type * generic/tclBasic.c: TCL_TOKEN_EXPAND_WORD. Updated Tcl_EvalEx * generic/tclCompile.c: and the bytecode compiler/execution engine * generic/tclCompile.h: to recognize the new token type. New opcodes * generic/tclExecute.c: INST_LIST_VERIFY and INST_INVOKE_EXP and a new * generic/tclParse.c: operand type OPERAND_ULIST1 are defined. Docs * generic/tclTest.c: and tests are included. * tests/basic.test: * tests/compile.test: * tests/parse.test: * library/auto.tcl: Replaced several [eval]s used to perform * library/package.tcl: argument expansion with the new syntax. * library/safe.tcl: In the test files lindex.test and lset.test, * tests/cmdInfo.test: replaced use of [eval] to force direct * tests/encoding.test: string evaluation with use of [testevalex] * tests/execute.test: which more directly and robustly serves the * tests/fCmd.test: same purpose. * tests/http.test: * tests/init.test: * tests/interp.test: * tests/io.test: * tests/ioUtil.test: * tests/iogt.test: * tests/lindex.test: * tests/lset.test: * tests/namespace-old.test: * tests/namespace.test: * tests/pkg.test: * tests/pkgMkIndex.test: * tests/proc.test: * tests/reg.test: * tests/trace.test: * tests/upvar.test: * tests/winConsole.test: * tests/winFCmd.test:
* * tests/cmdAH.test:dgp2003-10-071-246/+241
| | | | | | | | | | | * tests/exec.test: Corrected temporary file management * 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/main.test: * 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]
* * tests/io.test:mdejong2003-03-071-19/+20
| | | | | | | * tests/ioCmd.test: Define a fcopy constraint and add it to the constraint list of any test that depends on the fcopy command. This is only useful to Jacl which does not support fcopy.
* * tests/io.test: Doh! Undo accidental commentingmdejong2003-03-071-6/+1
| | | | out of a couple of tests.
* * tests/io.test: Define a fileevent constraint and addmdejong2003-03-071-71/+72
| | | | | | it to the constraint list of any test that depends on the fileevent command. This is only useful to Jacl which does not support fileevent.
* * tests/io.test: Define an openpipe constraint and addmdejong2003-03-071-60/+66
| | | | | | it to the constraint list of any test that creates a pipe using the open command. This is only useful to Jacl which does not support pipes.
* * generic/tclIO.c (Tcl_SetChannelOption):mdejong2003-03-061-2/+2
| | | | | | | | | | | | | Invoke the Tcl_SetChannelBufferSize method as a result of changing the -buffersize option to fconfigure. The previous implementation used some inlined code that reset the buffer size to the default size instead of ignoring the request as implemented in Tcl_SetChannelBufferSize. * tests/io.test: Update test case so that it actually checks the implementation of Tcl_SetChannelBufferSize.
* * tests/pid.test: See below [Bug #678412].andreas_kupries2003-02-251-8/+8
| | | | * tests/io.test: Made more robust against spaces in paths [Bug #678400].
* add catches to suppress unnecessary errorshobbs2003-02-091-3/+3
|
* finalization and test fixesvincentdarley2003-02-041-7/+7
|
* * tests/io.test:andreas_kupries2002-07-301-1/+36
| | | | | | | | | * generic/tclIO.c (WriteChars): Added flag to break out of loop if nothing of the input is consumed at all, to prevent infinite looping of called with a non-UTF-8 string. Fixes Bug 584603 (partially). Added new test "io-60.1". Might need additional changes to Tcl_Main so that unprintable results are printed as binary data.
* * Cleaned up, constrained, and reduced the amount of [exec] usagedgp2002-07-101-4/+5
| | | | in the test suite.
* * All the bugs below are instances of the same problem: Theandreas_kupries2002-07-041-872/+905
| | | | | | | | | testsuite assumes [pwd] = [temporaryDirectory] and writable. * tests/iogt.test: Fixed bug #575860. * tests/io.test: Fixed bug #575862. * tests/exec.test: * tests/ioCmd.test: Fixed bug #575836.
* * doc/tcltest.n: Reverted [makeFile] and [viewFile] todgp2002-07-021-1672/+1212
| | | | | | | | * library/tcltest/tcltest.tcl: their former behavior, and documented * tests/cmdAH.test: it. Corrected misspelling of hook * tests/event.test: procedure. Restored tests. * tests/http.test: * tests/io.test:
* * tests/pkg/samename.tcl: restored. needed by pkgMkIndex.test.dgp2002-07-011-1212/+1668
| | | | | * library/tcltest/tcltest.tcl: restored writeability testing of -tmpdir, augmented by a special exception for the deafault value.
* * Fixed [makeFile] and [viewFile] to accurately reflect a file'sdgp2002-07-011-7/+11
| | | | | | contents. Updated tests that depended on buggy behavior. Also added warning messages to "-debug 1" operations to debug test calls to (make|remove)(File|Directory).
* * tests/io.test: Fixed up namespace variable resolution issuesdgp2002-06-061-29/+55
| | | | | | | | | | | | revealed by running test suite with "-singleproc 1". * doc/tcltest.n: * library/tcltest/tcltest.tcl: * tests/tcltest.test: Several updates to tcltest. 1) changed to lazy initialization of test constraints 2) deprecated [initConstraintsHook] 3) repaired badly broken [limitConstraints]. [Patch 512214, Bug 558742, Bug 461000]
* * Use the "stdio" constraint to control whetherdgp2002-05-311-5/+5
| | | | an [open "|[interpreter]"] is attempted.
* * Revised to run tests in a namespace, rather thandgp2002-04-161-330/+379
| | | | | use the useless and buggy [saveState] and [restoreState] commands of tcltest. Updated to use tcltest 2 as well. [Patch 544546]
* * tests/io.test:hobbs2002-03-041-2/+2
| | | | | | | | | * tests/encoding.test: corrected iso2022 encoding results. added encoding-24.* * generic/tclEncoding.c (EscapeFromUtfProc): corrected output of escape codes as per RFC 1468. [Patch #474358] (taguchi) (TclFinalizeEncodingSubsystem): corrected potential double-free when encodings were finalized on exit. [Bug #219314, #524674]
* corrected iso2022 return encoding escapehobbs2002-03-021-2/+2
|
* TIP#72 implementation. See ChangeLog for details.dkf2002-02-151-4/+30
| | | | | This version builds clean on Solaris/SPARC, with GCC and CC, both with and without threads and both in 32-bit and 64-bit mode.