summaryrefslogtreecommitdiffstats
path: root/tests/main.test
Commit message (Collapse)AuthorAgeFilesLines
* 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). FossilOrigin-Name: c64f310d38b977e7ae26a48bcf8bb8c50e453af7
| * 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. FossilOrigin-Name: 79367df0f0e01a96f037f893e889e7cb9b807847
| | * 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. FossilOrigin-Name: 90b4acd7bdab65433169a232124967885c18d972
| | * * tests/main.text (Tcl_Main-4.4): Test corrected to not bedgp2006-09-041-3/+3
| | | | | | | | | | | | | | | | | | timing sensitive to the Bug 1481986 fix. [Bug 1550858] FossilOrigin-Name: 421d53064c4f39f246b2c8322fe7a5664f1024ae
| | * * generic/tclMain.c (Tcl_Main): Corrected flaw that requireddgp2006-05-051-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | * tests/main.test: (Tcl_Main-4.5): processing of one interactive command before passing control to the loop routine registered with Tcl_SetMainLoop() [Bug 1481986]. FossilOrigin-Name: f4e4abd17fd6355fbea233c0181074455e89066a
| | * * tests/main.test (Tcl_Main-6.7): Improved robustness ofdgp2006-02-091-1/+2
| | | | | | | | | | | | | | | | | | command auto-completion test. [Bug 1422736]. FossilOrigin-Name: e5155bf41c6c3a4f1755d3ae269b40c787228b22
| | * * library/init.tcl: Corrected flaw in interactive commanddgp2005-04-281-1/+17
| | | | | | | | | | | | | | | | | | * tests/main.test: auto-completion. [Bug 1191409]. FossilOrigin-Name: d43f85a9a8f0755d46c077900597163d5bf05e9d
* | | [FRQ 491789]: "setargv() doesn't support a unicode cmdline"nijtmans2010-11-181-11/+3
|/ / | | | | | | | | | | | | now implemented for cygwin and mingw32 too. No longer disable tests Tcl_Main-1.4 and 1.6 on Windows, because those now work on all supported platforms. FossilOrigin-Name: 078f74fc6dda1a697dc90cc9c586bd446a02acbc
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| | | | | | FossilOrigin-Name: d1f7550cd9bf1343d8505fb99fc5141b58bb88bf
* | * generic/tclMain.c: Corrected the logic of dropping the lastdgp2007-08-211-1/+30
| | | | | | | | | | | | | | * tests/main.test: newline from an interactively typed command. [Bug 1775878]. FossilOrigin-Name: 8b6639f41a0f78b4a71a9e406fbf456500e26119
* | * tests/main.text (Tcl_Main-4.4): Test corrected to not bedgp2006-09-041-3/+3
| | | | | | | | | | | | timing sensitive to the Bug 1481986 fix. [Bug 1550858] FossilOrigin-Name: 3a84db563217580b97ff903912cb34cf5de2eeb5
* | * generic/tclMain.c (Tcl_Main): Corrected flaw that requireddgp2006-05-051-1/+22
| | | | | | | | | | | | | | | | * tests/main.test: (Tcl_Main-4.5): processing of one interactive command before passing control to the loop routine registered with Tcl_SetMainLoop() [Bug 1481986]. FossilOrigin-Name: aedf5e48e961a866afd44b72035cf3e08711d837
* | Use test constraints properly instead of looking in tcl_platformdkf2006-03-211-14/+4
| | | | | | | | | | | | | | Consistent method of calling test constraints, and (try to) move constraint setup to the top of the test file FossilOrigin-Name: 36829d55d6ebcac6be4d3d7d887b06650a5b394a
* | * tests/main.test (Tcl_Main-6.7): Improved robustness ofdgp2006-02-091-1/+2
| | | | | | | | | | | | command auto-completion test. [Bug 1422736]. FossilOrigin-Name: b473228f0eb33cf28a5ed1f7ceccc58d1954efd7
* | * library/init.tcl: Corrected flaw in interactive commanddgp2005-04-281-1/+17
| | | | | | | | | | | | * tests/main.test: auto-completion. [Bug 1191409]. FossilOrigin-Name: 25b4da904a76ff9b7d0d1e31dd422cfe87621efc
* | * tests/cmdAH.test:dgp2003-10-071-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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: FossilOrigin-Name: 10252720cd40b4ab3f5a9d76314668f1fd646fc6
* | * doc/FileSystem.3: Implementation ofdgp2003-09-051-1/+67
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc/source.n: TIPs 137/151. Adds * doc/tclsh.1: a -encoding option to * generic/tcl.decls: the [source] command * generic/tclCmdMZ.c (Tcl_SourceObjCmd): and a new C routine, * generic/tclIOUtil.c (Tcl_FSEvalFileEx): Tcl_FSEvalFileEx(), * generic/tclMain.c (Tcl_Main): that provides C access * mac/tclMacResource.c (Tcl_MacSourceObjCmd): to the same function. * tests/cmdMZ.test: Also adds command line * tests/main.test: option handling in Tcl_Main() so that tclsh * tests/source.test: and other apps built on Tcl_Main() respect a -encoding command line option before a script filename. Docs and tests updated as well. [Patch 742683] This is a ***POTENTIAL INCOMPATIBILITY*** only for those C programs that embed Tcl, build on Tcl_Main(), and make use of Tcl_Main's former ability to pass a leading "-encoding" option to interactive shell operations. * generic/tclInt.decls: Added internal stub * generic/tclMain.c (Tcl*StartupScript*): table entries for two new functions Tcl_SetStartupScript() and Tcl_GetStartupScript() that set/get the path and encoding for the startup script to be evaluated by either Tcl_Main() or Tk_Main(). Given public names in anticipation of their exposure by a followup TIP. * generic/tclDecls.h: make genstubs * generic/tclIntDecls.h: * generic/tclStubInit.c: FossilOrigin-Name: 8f0e879bbdc4e2ab4f52f86e0fb90d1455447e7b
* Don Porter's fix for bad parsing of nested scripts [Bug 681841].msofer2003-02-161-4/+4
| | | FossilOrigin-Name: 13c34f1df965be2a2dcdba3a6efa2406bac99e66
* * tests/main.test: Stopped main.test from deleting existing file.dgp2003-01-311-2/+5
| | | | | | Test suite should not delete files that already exist. [Bug 675660] FossilOrigin-Name: 26a42fb072c29245f71276e96ee988a08c8f1d5e
* * tests/main.test: Constrain tests that do not work on Windows.dgp2003-01-281-7/+7
| | | FossilOrigin-Name: 4526b1dfd4af31551fad9e5ecea0a9286ad32a56
* * tests/main.test: Cheap fix for [Bugs 575851, 575858]. Avoiddgp2002-07-031-1/+6
| | | | | | | | | * tests/tcltest.test: non-writable . by [cd [temporaryDirectory]]. * library/auto.tcl: Fix [tcl_findLibrary] to be sure it sets $varName only if a successful library script is found. [Bug 577033] FossilOrigin-Name: 332c6597041b4e9888f1fd3b64b1f8e053c39561
* * Use the "stdio" constraint to control whetherdgp2002-05-311-7/+7
| | | | | | an [open "|[interpreter]"] is attempted. FossilOrigin-Name: 0d22f3e09c868323c68b116eba557497a968cb6b
* * Fixes to test suite when there's a spacedgp2002-05-081-11/+11
| | | | | | in the working path. Thanks to Kevin Kenny. FossilOrigin-Name: 12ffd9611f710ebbf7f7011e05d3e23335596364
* * Parts of fileSystem.test require tcltest 2. Added appropriate checks.dgp2002-04-161-4/+4
| | | FossilOrigin-Name: df1ed8416d680c5e5e672bb8c9ab1bbdc9460c46
* * Added missing [after cancel]s.dgp2002-03-271-3/+5
| | | FossilOrigin-Name: 0c71c43e2d5d6d6b99e35523d343b3c852304a94
* * Removed workarounds for Bug 495977.dgp2002-03-251-63/+183
| | | FossilOrigin-Name: d02a53784456f1e591a30fcd3edda961f45c2fdf
* * generic/tclInt.decls:das2002-01-271-14/+14
| | | | | | | | | | | | | | | | | * generic/tclIntPlatDecls.h: * mac/tclMacChan.c: * mac/tclMacFCmd.c: * mac/tclMacFile.c: * mac/tclMacInit.c: * mac/tclMacLoad.c: * mac/tclMacResource.c: * mac/tclMacSock.c: TIP 27 CONSTification induced changes * tests/event.test: * tests/main.test: added catches/constraints to test that use features that don't exist on the mac. FossilOrigin-Name: 02f6dcb5d2e40852b7e678559c5f3964c826593e
* More changes for test portability. Using euro symbol.dgp2002-01-091-7/+7
| | | FossilOrigin-Name: d7937ae39f5e84f5be162f48d814051c729cad3d
* * generic/tclTest.c (MainLoop):dgp2002-01-091-15/+21
| | | | | | | * tests/main.test (Tcl_Main-1.{3,4,5,6}): Corrected some non-portable tests from the new Tcl_Main changes. Thanks to Kevin Kenny. FossilOrigin-Name: 3435db0ae475099100f32ab029a96ae81454df78
* * doc/Tcl_Main.3:dgp2002-01-051-0/+1048
* generic/tclMain.c: Substantial rewrite and expanded documentation of Tcl_Main to correct a number of bugs and flaws: * Interactive Tcl_Main can now enter a main loop, exit that loop and continue interactive operations. The loop may even exit in the midst of interactive command typing without loss of the partial command. [Bugs 486453, 474131] * Tcl_Main now gracefully handles deletion of its master interpreter. * Interactive Tcl_Main can now operate with non-blocking stdin * Interactive Tcl_Main can now detect EOF on stdin even in mid-command. [Bug 491341] * Added VFS-aware internal routines for managing the startup script selection. * Tcl variable 'tcl_interactive' is now linked to C variable 'tty' so that one can disable/enable interactive prompts at the script level when there is no startup script. This is meant for use by the test suite. * Consistent use of the Tcl libraries standard channels as returned by Tcl_GetStdChannel(); as opposed to the channels named 'stdin', 'stdout', and 'stderr' in the master interp, which can be different or unavailable. * Tcl_Main now calls Tcl_Exit() if evaluation of [exit] in the master interpreter returns, assuring Tcl_Main does not return. * Documented Tcl_Main's absence from public stub table * Documented that Tcl_Main does not return. * Documented Tcl variables set by Tcl_Main. * All prompts are done from a single procedure, Prompt. * Use of Tcl_Obj-enabled interfaces everywhere. * generic/tclInt.decls (TclGetStartupScriptPath, TclSetStartupScriptPath): New internal VFS-aware routines for managing the startup script of Tcl_Main. * generic/tclIntDecls.h: * generic/tclStubInit.c: make genstubs * generic/tclTest.c (TestsetmainloopCmd,TestexitmainloopCmd, Tcltest_Init,TestinterpdeleteCmd): * tests/main.test (new): Added new file to test suite that thoroughly tests generic/tclMain.c; added some new test commands for testing Tcl_SetMainLoop(). FossilOrigin-Name: f24c18a585bae5d10dd0fcb587ac979f99d00370