summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
Commit message (Collapse)AuthorAgeFilesLines
* Use conventional list operations for ensemble dispatchjan.nijtmans2016-07-041-1/+98
|\ | | | | Add ability to disassemble TclOO constructors and destructors
| * Add ability to disassemble TclOO constructors and destructors ([1493a43044] ↵dkf2016-07-041-1/+98
| | | | | | | | motivates)
* | merge 8.6 bug fixesdgp2016-03-171-0/+11
|\ \ | |/
| * New test compile-5.3 for the bug.bug_b9b2079e6ddgp2016-03-111-0/+11
| |
* | Eliminate exess spacings in many test-casesjan.nijtmans2016-03-101-10/+10
|/
* Put the file location information that Tcl has into the disassembled code. ↵dkf2016-01-181-3/+39
| | | | Important for tclquadcode.
* Now make the patch by hand that fossil could not merge.dgp2014-12-031-2/+1
|
* missing unset in new testMiguel Sofer2014-12-031-1/+1
|
* test and fix (thx dgp)bug_0c043a175Miguel Sofer2014-12-031-4/+5
|
* adding a test for the bugMiguel Sofer2014-12-031-2/+10
|
* improve the testing of the disassembly commandsdkf2014-02-081-1/+81
|
* new test, and fix for bugmig2013-12-111-0/+30
|
* Do jump generation at places where INST_RETURN_IMM might occur.dkf2013-10-151-0/+64
|
* 3614102 - Reset stack housekeeping when compileProc fails.dgp2013-05-291-0/+6
|
* No longer build tcltest.exe to run the tests,but use tclsh86.exe in ↵jan.nijtmans2012-07-291-0/+3
| | | | combination with tcltest86.dll to do that (Windows only)
* 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.
| | * style revisions to latest commitdgp2008-04-171-8/+1
| | |
| | * * generic/tclCompExpr.c (CompileMathFuncCall): Addedandreas_kupries2008-04-171-1/+7
| | | | | | | | | | | | | | | | | | | | | * tests/compile.test (compile-16.0): Tcl_ResetResult before appending error message, to clear out possible sharing. Added test case demonstrating the crash (abort on shared object) without the fix.
| | * * tests/compile.test (compile-12.4): Backport test for Bug 1001997.dgp2004-10-261-1/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/timer.test (timer-10.1): Backport test for Bug 1016167. * tests/tcltest.test (tcltest-12.3,4): Backport setup corrections. * tests/error.test (error-6.3,4,7,9): Backport of some tests. * tests/basic.test (basic-49.*): * tests/namespace.test (namespace-8.7): * tests/init.test (init-2.8): Updated to not rely on http package. * generic/tclThreadTest.c (ThreadEventProc): Corrected subtle bug where the returned (char *) from Tcl_GetStringResult(interp) continued to be used without copying or refcounting, while activity on the interp continued.
| | * * generic/tclCompile.c (TclCompileScript):Miguel Sofer2004-03-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/compile.test (compile-3.5): corrected wrong test and behaviour in the earlier fix for [Bug 705406]; Don Porter reported this as [Bug 735055], and provided the solution. Fixed in HEAD on 2003-05-09, but backport to 8-4-branch was wrongly omitted; re-reported as [Bug 916795] by Roy Terry, diagnosed by dgp.
| | * * generic/tclCompile.c:Miguel Sofer2003-03-191-1/+12
| | | | | | | | | | | | | | | * tests/compile.test: bad command count on TCL_OUT_LINE_COMPILE [Bug 705406] (Don Porter). Backport from 8.5a0
| * | * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
| * | Test hygiene for the ::tmp variabledgp2009-10-291-1/+2
| | |
| * | * tests/info.test: Tests 38.* added, exactly testing the trackingandreas_kupries2008-07-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of location for uplevel scripts. * generic/tclCompile.c (TclInitCompileEnv): Reorganized the initialization of the #280 location information to match the flow in TclEvalObjEx to get more absolute contexts. * generic/tclBasic.c (TclEvalObjEx): Moved the pure-list optimization out of the eval-direct code path to be done always, i.e. even when a compile is requested. This way we do not loose the association between #280 location information and the list elements, if any.
* | | Clean up of tests and conversion to tcltest 2. Target has been to get init anddkf2011-01-011-134/+123
| | | | | | | | | | | | cleanup code out of the test body and into the -setup/-cleanup stanzas.
* | | * generic/tclCompCmds.c (TclCompileCatchCmd):Kevin B Kenny2010-11-031-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/compile.test (compile-3,6): Reworked the compilation of the [catch] command so as to avoid placing any code that might throw an exception (specifically, any initial substitutions or any stores to result or options variables) between the BEGIN_CATCH and END_CATCH but outside the exception range. Added a test case that panics on a stack smash if the change is not made. [Bug #3098302]
* | | test hygiene for the ::tmp variabledgp2009-10-291-1/+2
| | |
* | | Fix [Bug 2251175]: missing backslash generic/tclCompCmds.c substitution on ↵ferrieux2008-11-171-1/+8
| | | | | | | | | | | | expanded literals.
* | | Use the powers of tcltest2 for good! Also add basic testing of disassmblerdkf2008-09-101-1/+86
|/ / | | | | | | (though not of its output format).
* | merge stable branch onto HEADdgp2007-12-131-1/+1
| |
* | * generic/tclIOCmd.c: Revise [open] so that it interprets leadingdgp2007-10-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zero strings passed as the "permissions" argument as octal numbers, even if Tcl itself no longer parses integers in that way. * unix/tclUnixFCmd.c: Revise the "-permissions" [file attribute] so that it interprets leading zero strings as octal numbers, even if Tcl itself no longer parses integers in that way. * generic/tclCompExpr.c: Corrections to code that produces * generic/tclUtil.c: extended "bad octal" error messages. * tests/cmdAH.test: Test revisions so that tests pass whether or * tests/cmdIL.test: not Tcl parses leading zero strings as octal. * tests/compExpr-old.test: * tests/compExpr.test: * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/incr.test: * tests/io.test: * tests/lindex.test: * tests/link.test: * tests/mathop.test: * tests/parseExpr.test: * tests/set.test: * tests/string.test: * tests/stringComp.test:
* | Add missing constraintsdgp2007-03-071-2/+2
| |
* | Detect [Bug 1638414]dkf2007-01-181-23/+6
| |
* | * doc/ParseCmd.3, doc/Tcl.n, doc/eval.n, doc/exec.n:hobbs2006-11-031-22/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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/compExpr-old.test: Update existing tests to not faildgp2006-08-221-13/+9
| | | | | | | | | | | | | | | | | | | | | | * tests/compExpr.test: with the new expr parser. * tests/compile.test: * tests/expr-old.test: * tests/expr.test: * tests/for.test: * tests/if.test: * tests/parseExpr.test: * tests/while.test:
* | * tests/compExpr-old.test: add 'oldExprParser' constraint to all testsdas2006-08-021-4/+8
| | | | | | | | | | | | | | | | | | | | | | * tests/compExpr.test: that depend on the exact format of the error * tests/compile.test: messages of the pre-2006-07-05 expression * tests/expr-old.test: parser. The constraint is on by default (i.e. * tests/expr.test: those test still fail), but it can be turned * tests/for.test: off by passing '-constraints newExprParser' * tests/if.test: to tcltest, which will skip the 196 failing * tests/parseExpr.test: tests in the testsuite that are caused by * tests/while.test: the new expression parser error messages.
* | TIP#215 IMPLEMENTATIONdgp2006-02-091-5/+5
| | | | | | | | | | | | | | | | | | | | * doc/incr.n: Revised [incr] to auto-initialize when varName * generic/tclExecute.c: argument is unset. [Patch 1413115]. * generic/tclVar.c: * tests/compile.test: * tests/incr-old.test: * tests/incr.test: * tests/set.test:
* | * tests/compile.test: Updated tests with changed behaviordgp2005-11-091-3/+3
| | | | | | | | | | | | | | | | | | * tests/execute.test: due to addition of bignums. * tests/expr-old.test: * tests/expr.test: * tests/parseExpr.test: * tests/platform.test: * tests/string.test:
* | Marked several failing tests as "knownBug" until they can be updated.dgp2005-10-211-2/+2
| |
* | Merged kennykb-numerics-branch back to the head; TIPs 132 and 232Kevin B Kenny2005-05-101-6/+6
| |
* | TIP#176 IMPLEMENTATION [Patch 1165695]dgp2005-04-291-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclUtil.c: Extended TclGetIntForIndex to recognize index formats including end+integer and integer+/-integer. * generic/tclCmdMZ.c: Extended the -start switch of [regexp] and [regsub] to accept all index formats known by TclGetIntForIndex. * doc/lindex.n: Updated docs to note new index formats. * doc/linsert.n: * doc/lrange.n: * doc/lreplace.n: * doc/lsearch.n: * doc/lset.n: * doc/lsort.n: * doc/regexp.n: * doc/regsub.n: * doc/string.n: * tests/cmdIL.test: Updated tests. * tests/compile.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/lsearch.test: * tests/lset.test: * tests/regexp.test: * tests/regexpComp.test: * tests/string.test: * tests/stringComp.test: * tests/util.test:
* | Add another test demonstrating what *should* happen, and xref to FRQdkf2005-01-141-2/+17
| | | | | | | | that triggered this discussion
* | Document deep magic in compiled [expr]dkf2005-01-141-1/+17
| |
* | Upgrade more of the file to tcltest2, and collect constraint definitions to ↵dkf2004-12-021-51/+53
| | | | | | | | the top.
* | * tests/basic.test: Added missing constraints.dgp2004-10-261-2/+2
| | | | | | | | | | | | | | * tests/compile.test: * tests/fileSystem.test: * tests/init.test (init-2.8): Updated to not rely on http package.
* | * generic/tclCmdMZ.c (TclProcessReturn): Support the -errorlinedgp2004-09-221-1/+14
| | | | | | | | | | | | | | * generic/tclCompile.c (TclCompileScript): option to [return]. * tests/compile.test (16.23.*): Use that capability to defer reporting * tests/misc.test (1.2): of parse errors until runtime. Updated tests to reflect change. [Bug 1032805]
* | * generic/tclLiteral.c (TclCleanupLiteralTable): Correcteddgp2004-08-021-1/+58
| | | | | | | | | | | | * tests/compile.test (compile-12.4): flawed deletion of literal internal reps that could lead to accessing of freed memory. Thanks to Kevin Kenny for test case and fix [Bug 1001997].
* | * tests/compile.test (compile-16.22.0): Improved test for thedgp2003-11-201-4/+7
| | | | | | | | recent fix for Bug 845412.