summaryrefslogtreecommitdiffstats
path: root/tests/compile.test
Commit message (Collapse)AuthorAgeFilesLines
* Add "{}" around many "expr" commands in testcases. Also in doc/expr.njan.nijtmans2020-10-301-16/+16
|
* Let all test-cases load the "tcltest" package the same way. Depend on ↵jan.nijtmans2020-09-041-2/+4
| | | | tcltest 2.5, since we never test with earlier tcltest versions
* merge 8.5sebres2019-09-261-3/+3
|\
| * amend to [fec0c17d39] - reduce max count of nested compiles to 1500sebres2019-09-261-3/+3
| |
| * Add 32-bit Windows builds, both with MSVC and GCC, to Travis. jan.nijtmans2019-09-161-75/+86
| | | | | | Backport various test-suite changes fro 8.6 to 8.5, mainly "knownBug" markers and comments
| * partially cherrypick of [ecf524bce0], bug-fec0c17d39-8.6-limit: ultimate fix ↵sebres2019-09-111-10/+40
| | | | | | | | | | for [fec0c17d39] - avoid SO on deeply recursive call stack by restriction of nested compilations using same limit (interp recursionlimit) like the evaluation, this must protect against unexpected stack exhaustion; conflicts resolved, tests fixed (no command `try` in 8.5)
| * Backport some improvements to tm.tcl (mostly comments). jan.nijtmans2019-09-101-2/+2
| | | | | | | | Don't use ::tcl_platform(debug) anymore, since it cannot be thrusted: Better use [::tcl::pkgconfig get debug] Reduce limits in tests/compile.test (13.2), since apparently it's still too much for some platforms.
| * Don't let Tcl compilation depend on USE_32BIT_TIME_T any more: Microsoft ↵jan.nijtmans2019-09-071-1/+1
| | | | | | | | | | could discontinue this macro any moment, then we are prepared .... As a bonus: time_t is now allowed to be 64-bit internally, without effect on the C API (like stub-enabled extensions)
* | Merge 8.6jan.nijtmans2019-09-031-1/+1
|\ \
| * | Fix testing for debug build on UNIX too (on UNIX, ::tcl_platform(debug) is ↵jan.nijtmans2019-09-021-1/+1
| | | | | | | | | | | | not set ....)
* | | extends [fec0c17d39]: restrict nested compilations using same limit (interp ↵sebres2019-08-301-8/+38
|/ / | | | | | | | | recursionlimit) like the evaluation, this must protect against unexpected stack exhaustion (avoid SO by deeply recursive call stack)
* | merge 8.5 - compile.test: reduce count of nested scripts to 1000 in debug ↵sebres2019-08-301-2/+2
|\ \ | |/ | | | | | | case (seems to be to heavy on some platforms within debug-build); (small amend to the fix of [fec0c17d39])
| * compile.test: reduce count of nested scripts to 1000 in debug case (seems to ↵sebres2019-08-301-2/+2
| | | | | | | | | | be to heavy on some platforms within debug-build); (small amend to the fix of [fec0c17d39])
* | more variants in test (since 8.6 compiles "try" using evalStk instruction)sebres2019-08-291-2/+2
| |
* | bug [fec0c17d39]: add test cases covering nested compilation (8.6th compile ↵sebres2019-08-291-0/+31
|\ \ | |/ | | | | generates a stack overflow with following segfault by 2000 nested bodies)
| * add test cases covering nested compilation bug [fec0c17d39] (8.5 is not ↵sebres2019-08-291-0/+31
| | | | | | | | affected at the moment by nested count under 2500)
| * [0c043a175] backport fix from trunk.dgp2014-12-031-2/+10
| |\
* | | Add ability to disassemble TclOO constructors and destructors ([1493a43044] ↵dkf2016-07-041-1/+98
| | | | | | | | | | | | motivates)
* | | New test compile-5.3 for the bug.dgp2016-03-111-0/+11
| | |
* | | 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)Miguel 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]