summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
Commit message (Collapse)AuthorAgeFilesLines
* * tests/compile.test (compile-16.22.0): Improved test for thedgp2003-11-201-4/+7
| | | | | | recent fix for Bug 845412. FossilOrigin-Name: 39903cd5c5628da123dc037f15635d3fc3bf83a4
* Fixed Bug 845412; long commands without expansion don't get tangled with thedkf2003-11-191-1/+8
| | | | | | expansion machinery now... FossilOrigin-Name: 791e41a30772b6d6f48855266e24e9b575d3eba1
* * doc/ParseCmd.3: Implementation of TIP 157. Adds recognitiondgp2003-11-141-4/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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: FossilOrigin-Name: cbfb8313bae848d0c0a2070542fbc2e4fa371ba2
* fix for [Bug 735055]msofer2003-05-091-2/+2
| | | FossilOrigin-Name: c421db8aa6c5694818495f8723bc2714550eae7e
* * generic/tclCompile.c:msofer2003-03-191-1/+11
| | | | | | | * tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE [Bug 705406] (Don Porter). FossilOrigin-Name: 6847eb40b57cc8782ff33310f7b4f161490931b1
* * generic/tclCompCmds.c (TclCompileReturnCmd): Alternative fix fordgp2003-03-191-2/+2
| | | | | | | | | * generic/tclCompile.c (INST_RETURN): [Bug 633204] that uses a new * generic/tclCompile.h (INST_RETURN): bytecode INST_RETURN to * generic/tclExecute.c (INST_RETURN): properly bytecode the [return] command to something that returns TCL_RETURN. FossilOrigin-Name: 8153ce2774235acfe6f80cae7af59a4923e21d0b
* * generic/tclCompCmds.c (TclCompileReturnCmd):dgp2003-01-081-2/+32
| | | | | | | | | * tests/compile.test: Corrects failure of bytecompiled [catch {return}] to have result TCL_RETURN (not TCL_OK) [Bug 633204]. This patch is a workaround for 8.4.X. A new opcode INST_RETURN is a better long term solution for 8.5 and later. FossilOrigin-Name: 8f6092205c4b99e36c0cee728ff1f0187cb0ff12
* 2002-08-26 Miguel Sofer <msofer@users.sourceforge.net>msofer2002-08-261-1/+12
| | | | | | | | * generic/tclCompCmds.c: fix for [Bug 599788] (error in element name causing segfault), reported by Tom Wilkason. Fixed by copying the tokens instead of the source string. FossilOrigin-Name: 22ac3d3f36cf511c9af47fe8e9b492f1a28bf802
* * Cleaned up, constrained, and reduced the amount of [exec] usagedgp2002-07-101-13/+12
| | | | | | in the test suite. FossilOrigin-Name: b0f3dfed629f8e4c506365bc62ba4dd7900a03c6
* * Corrections to tcltest and the Tcl test suite so that a testdgp2002-06-221-4/+4
| | | | | | | | | with options -constraints knownBug -limitConstraints 1 only tests the knownBug tests. Mostly involves replacing direct access to the testConstraints array with calls to the testConstraint command (which requires tcltest version 2). FossilOrigin-Name: 9ba9324aefb481870bbdcf7c812e149be23ddd02
* [Bug 569438] in the processing of dollar variablesmsofer2002-06-161-1/+10
| | | FossilOrigin-Name: 6f670a6acb2ff99f9465bba5b0a587f2c259f372
* made bytecodes check for a catch before returning; the compiled [return] is ↵msofer2002-04-151-1/+10
| | | | | otherwise non-catchable. [Bug 542588] FossilOrigin-Name: 44018b1a8b88f43a283fb483589ed3e98552124f
* Fixed buffer overrun reported in 530320; luckily it is not likely todkf2002-03-151-1/+8
| | | | | | | be exploitable in any meaningful way, but crashing Tcl instead of triggering an error still isn't good. FossilOrigin-Name: 33ea727db7dcbafafd9ae39fe1a1c223a5236815
* More expr syntax error improvementsdkf2001-12-061-3/+3
| | | FossilOrigin-Name: cd9316932b4481e9d683a9cbd34f3739d82bfbe7
* Improved messages produced on getting a syntax error in an expressiondkf2001-12-041-3/+3
| | | FossilOrigin-Name: 7496369e64da3d9b0b5a574f2fc8ed8c607e81d7
* ** upport to 8.4 of mac code changes for 8.3.3 & various newdas2001-11-231-2/+2
| | | | | | | | ** changes for 8.4, some already backported to 8.3.4 (patch #435658) see ChangeLog for details FossilOrigin-Name: f961ecdd17042f83d4cf5b21380c117066ed9b88
* * tests/compile.test: added a test for bug [Bug 483309]msofer2001-11-191-1/+14
| | | FossilOrigin-Name: 34e03422d051c9d80c594cc78a20dbbc51236c98
* Small modif to tests/compile.test: better constraint handling formsofer2001-10-121-24/+21
| | | | | | tests committed earlier today. FossilOrigin-Name: 27b3dab99f599b024eb9492164fcfea0dbdca658
* * tests/compile.test: new tests for [Bug 467523]msofer2001-10-121-2/+52
| | | FossilOrigin-Name: b0131f311b4b8cfaa62cb198fb1757914c3f61e5
* * tests/compile.test: added compile-11.* interp result checkshobbs2001-08-311-15/+42
| | | | | | | | | | | * generic/tclUtil.c (TclGetIntForIndex): added Tcl_ResetResult before Tcl_AppendStringsToObj to prevent shared object crash when called from bcc instruction. The Tcl_Append* calls that append to the result object that are invoked by bcc insts must remember to call Tcl_ResetResult because the bcc doesn't do this for us. [Bug #456892] FossilOrigin-Name: 6a841ea6f8d77bfba423cf5ed956975cc63ea673
* Fixed overagressive compilation of [catch], [Bug #219184]msofer2001-08-221-2/+10
| | | FossilOrigin-Name: 1cf946c837f8c4e3ec465ce4a3912dfecf4c685b
* * tests/compile.test:hobbs2000-05-031-3/+2
| | | | | | | | | | | | * tests/init.test: * tests/proc.test: * tests/proc-old.test: * tests/rename.test: * generic/tclProc.c: reworked error return for procedures with incorrect args to be like the C Tcl_WrongNumArgs, where a "wrong # args: ..." message is printed out with the args list. FossilOrigin-Name: e9b0d62a314c7178b66e1ff13d409decb92ff035
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948]. FossilOrigin-Name: c2f93a113cfcb17a21da67cc20f54ab3f1b9fa3c
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
| | | FossilOrigin-Name: fdb0602e41e62bf526806c165dbf3f33a718fd37
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-16/+42
| | | FossilOrigin-Name: f3b32fb71c9011ac220779bd9dbe5617c9dc87d9
* * generic/tclCompile.c (CompileExprWord): Fixed exception stackstanton1999-02-021-1/+10
| | | | | | overflow bug caused by missing statement. [Bug: 928] FossilOrigin-Name: 281970295046b775e0aea8beb8f881b043a2db22
* Replaced SCCS strings, fixed binary filescore-8-0-3stanton1998-09-141-1/+1
| | | FossilOrigin-Name: 196f92fd17305db5fec1acd59f6926de11e01624
* *** empty log message ***stanton1998-06-251-0/+10
| | | FossilOrigin-Name: 0cabb12481d7379d55a09d213f33e790a014c0ae
* *** empty log message ***stanton1998-06-181-7/+48
| | | FossilOrigin-Name: 1d4fda1f1e8e794d8a3a11dca93ddc21259bf04f
* Initial revisionrjohnson1998-03-261-0/+128
FossilOrigin-Name: f86c34e38d2a946e0ed196001fd756c57f90791a