summaryrefslogtreecommitdiffstats
path: root/tests/io.test
Commit message (Collapse)AuthorAgeFilesLines
* * 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.
* * tests/io.test: io-39.22 split into two tests, one platformandreas_kupries2002-02-011-4/+18
| | | | | dependent, the other not. -eofchar is not empty on the windows platform.
* Make -eofchar and -translation options read only formdejong2002-01-251-1/+32
| | | | | | | | | | | | | | | server sockets. [Bug 496733] * generic/tclIO.c (Tcl_GetChannelOption, Tcl_SetChannelOption): Instead of returning nothing for the -translation option on a server socket, always return "auto". Return the empty string enclosed in quotes for the -eofchar option on a server socket. Fixup -eofchar usage message so that it matches the implementation. * tests/io.test: Add -eofchar tests and -translation tests to ensure options are read only on server sockets. * tests/socket.test: Update tests to account for -eofchar and -translation option changes.
* * generic/tclIO.c (WriteChars): Fix for SF #506297, reported byandreas_kupries2002-01-211-1/+14
| | | | | | | | | | | | | | Martin Forssen <ruric@users.sourceforge.net>. The encoding chosen in the script exposing the bug writes out three intro characters when TCL_ENCODING_START is set, but does not consume any input as TCL_ENCODING_END is cleared. As some output was generated the enclosing loop calls UtfToExternal again, again with START set. Three more characters in the out and still no use of input ... To break this infinite loop we remove TCL_ENCODING_START from the set of flags after the first call (no condition is required, the later calls remove an unset flag, which is a no-op). This causes the subsequent calls to UtfToExternal to consume and convert the actual input.
* * Applied #219311 on behalf of Rolf Schroedterandreas_kupries2001-12-171-1/+50
| | | | | <schroedter@users.sourceforge.net> to prevent fcopy on serial ports from flooding the event queue.
* * The changes below are a fix for [219253].andreas_kupries2001-09-111-21/+21
| | | | | | | | | | | * tests/socket.test: Removed _most_ instances of hardwired port numbers for listening sockets. Remaining are the ports in all tests with constraint 'doTestsWithRemoteServer'. These seem to be designed for a more controlled environment and are usually skipped when running the testsuite. * tests/io.test: Removed all instances of hardwired port numbers for listening sockets.
* Changes from TIP#17 "Redo Tcl's filesystem"vincentdarley2001-07-311-63/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following files were impacted. * doc/Access.3: * doc/FileSystem.3: * doc/OpenFileChnl.3: * doc/file.n: * doc/glob.n: * generic/tcl.decls: * generic/tcl.h: * generic/tclCmdAH.c: * generic/tclCmdIL.c: * generic/tclCmdMZ.c: * generic/tclDate.c: * generic/tclDecls.h: * generic/tclEncoding.c: * generic/tclFCmd.c: * generic/tclFileName.c: * generic/tclGetDate.y: * generic/tclIO.c: * generic/tclIOCmd.c: * generic/tclIOUtil.c: * generic/tclInt.decls: * generic/tclInt.h: * generic/tclIntDecls.h: * generic/tclLoad.c: * generic/tclStubInit.c: * generic/tclTest.c: * generic/tclUtil.c: * library/init.tcl: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacPort.h: * mac/tclMacResource.c: * mac/tclMacTime.c: * tests/cmdAH.test: * tests/event.test: * tests/fCmd.test: * tests/fileName.test: * tests/io.test: * tests/ioCmd.test: * tests/proc-old.test: * tests/registry.test: * tests/unixFCmd.test: * tests/winDde.test: * tests/winFCmd.test: * unix/mkLinks: * unix/tclUnixFCmd.c: * unix/tclUnixFile.c: * unix/tclUnixInit.c: * unix/tclUnixPipe.c: * win/tclWinFCmd.c: * win/tclWinFile.c: * win/tclWinInit.c: * win/tclWinPipe.c
* 427196: Extended the testsuite.andreas_kupries2001-07-171-2/+12
|
* * tests/io.test: changed io-52.[9-11] to not be platform sensitivehobbs2001-05-231-13/+14
| | | | with EOL translation.
* * Note that "tclbench" (see project "tcllib") was extended withandreas_kupries2001-05-191-1/+79
| | | | | | | | | | | | | | | | | | performance benchmarks for [fcopy] too. * doc/fcopy.n: Updated to reflect the extended behaviour of 'fcopy'. * tests/io.test: Added tests 'io-52.9', 'io-52.10' and 'io-52.11' to test the handling of encodings by 'fcopy' / 'TclCopychannel' [Bug #209210]. * generic/tclIO.c: Split of both 'Tcl_ReadChars' and 'Tcl_WriteChars' into a public error checking and an internal working part. The public functions now use the new internal ones. The new functions are 'DoReadChars' and 'DoWriteChars'. Extended 'CopyData' to use the new functions 'DoXChars' when required by the encodings on the input and output channels [Bug #209210].
* 2001-04-04 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-04-041-9/+2
| | | | | | | * generic/tclTest.c: * tests/io.tests: TIP #10 followup correcting a problem with the original patch because of the lack of 'testthread id' for a non-threaded compilation.
* 2001-03-30 Andreas Kupries <andreas_kupries@users.sourceforge.net>andreas_kupries2001-03-301-14/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * All of the changes below belong to TIP #10 [Tcl I/O Enhancement: Thread-Aware Channels]. See also [Patch #403358] at SF. * generic/tclIO.h (struct ChannelState, line 236f): Extended the structure with a new field of type 'Tcl_ThreadId' to hold the id of the thread currently managing all channels with this state. Note: This structure is shared by all channels in a stack of transformations. * generic/tclIO.c (Tcl_CreateChannel, lines 1058-1065): Modified to store the Id of the current thread in the 'ChannelState' of the new channel. * generic/tclIO.c (Tcl_SpliceChannel, lines 2265-2270): Modified in the same manner as 'Tcl_CreateChannel' as the channel will be managed by the current thread afterward. * generic/tclIO.c (Tcl_GetChannelThread, lines 1478-1503): * generic/tcl.decls (Tcl_GetChannelThread, lines 1504-1506): New API function to retrieve the Id of the managing thread from a channel. Implementation and declaration. * generic/tclTest.c (TestChannelCmd, lines 4520-4532): Added subcommand 'mthread' to query a channel about its managing thread.
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* * tests/io.test: removed 'knownBug' tests that were forhobbs1999-12-081-68/+1
| | | | unsupported0, which is now fcopy (that already has tests)
* * tests/env.test:jenn1999-08-271-20/+12
| | | | | | | | | * tests/exec.test: * tests/io.test: * tests/event.test: * tests/tcltest.test: Added 'exit' calls to scripts that the tests themselves write, and removed accidental checkin of knownBugThreaded constraints for Solaris and Linux.
* * tests/tcltest.test:jenn1999-08-271-12/+20
| | | | | | * library/tcltest1.0/tcltest.tcl: Added a -args flag that sets a variable named ::tcltest::parameters based on whatever's being sent in as the argument to the -args flag.
* Changed the tests to use the testConstraints array that thejenn1999-07-011-2/+2
| | | | test harness uses instead of the old name (testConfig).
* Modified the tests to use the package tcltestjenn1999-06-261-60/+61
|
* unset the variable "u" whose initial value could affect test passage.hershey1999-06-091-1/+3
|
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-525/+2120
|
* cleaned up test suite so most of the tests pass on Windowsstanton1998-11-021-4/+4
|
* Fixed the Tcl_NotifyChannel bug, plus added a test case for it.welch1998-10-301-1/+26
| | | | | | Simply replaced Tcl_RegisterChannel/UnregisterChannel with Tcl_Preserve/Tcl_Release was all it took. Chanels are already "eventually freed"
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* *** empty log message ***stanton1998-06-181-0/+1
|
* *** empty log message ***stanton1998-06-091-0/+45
|
* Initial revisionrjohnson1998-03-261-0/+5143