summaryrefslogtreecommitdiffstats
path: root/tests/error.test
Commit message (Collapse)AuthorAgeFilesLines
* Add test and improve errorInfo.bug_010f4162efdgp2013-09-021-0/+10
|
* [33b7abb8a2] [7174354ecb] Rewrite TclCompileThrowCmd().dgp2013-06-111-0/+6
|
* Improving tests, fixed one case.dkf2013-06-091-9/+137
|
* Better error-message in case of errors related to setting a variablejan.nijtmans2011-04-041-19/+19
|
* 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.
| | * increment tcltest version requirementdgp2006-01-111-2/+2
| | |
| | * * tests/error.test (error-7.0): Test the timing of write tracesdgp2006-01-111-1/+21
| | | | | | | | | | | | on ::errorInfo [Bug 1397843].
| | * * tests/compile.test (compile-12.4): Backport test for Bug 1001997.dgp2004-10-261-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | * tests/error.test (error-19.13): Another variation on testing fordkf2010-11-041-1/+23
| | | | | | | | | | | | issues in [try] compilation.
* | | * generic/tclCmdMZ.c (TryPostBody): Ensure that errors when settingdkf2010-11-031-1/+45
| | | | | | | | | | | | | | | * tests/error.test (error-19.1[12]): message/opt capture variables get reflected properly to the caller.
* | | [Patch 2995655] Report inner contexts in [info errorstack]ferrieux2010-10-201-4/+4
| | |
* | | Safer (and faster) computation of [uplevel] offsets in TIP 348. Toplevel ↵ferrieux2010-06-021-4/+4
| | | | | | | | | | | | offsets no longer overestimated.
* | | Fix computation of [uplevel] offsets in TIP 341.ferrieux2010-05-311-4/+4
| | | | | | | | | | | | | | | Only depend on callerPtr chaining now. Needed for upcoming coro patch.
* | | * generic/tclCompCmdsSZ.c (IssueTryFinallyInstructions): [3007374]:dkf2010-05-281-1/+18
| | | | | | | | | | | | | | | Corrected error in handling of catch contexts to prevent crash with chained handlers.
* | | TIP #348 IMPLEMENTATION - Substituted error stackferrieux2010-04-051-1/+23
| | |
* | | [FRQ 2974744]: share exception codes (ObjType?):nijtmans2010-03-311-4/+4
| | | | | | | | | | | | | | | | | | Revised test cases, making sure that abbreviated codes are checked resulting in an error, and checking for the exact error message.
* | | Make error message in "try" implementationnijtmans2010-03-231-3/+3
| | | | | | | | | | | | exactly the same as the one in "return"
* | | Fix silly error in bytecode generation for [try].dkf2010-03-181-6/+55
| | |
* | | [Bug 2971921]: Corrected jump so that it doesn't skip into the middledkf2010-03-181-1/+23
| | | | | | | | | | | | | | | of an instruction! Tightened the instruction issuing. Moved endCatch calls closer to their point that they guard.
* | | Plug memory leak. [Bug 2910044]dkf2009-12-071-1/+66
| | |
* | | Revert mistaken commitdgp2009-11-161-23/+1
| | |
* | | (forward port) Fix [Bug 2891556] and improve test to detect similar ↵ferrieux2009-11-161-1/+23
| | | | | | | | | | | | manifestations in the future. Add tcltest support for finalization.
* | | * generic/tclCmdMZ.c: Replaced TclProcessReturn() calls withdgp2009-09-281-1/+15
| | | | | | | | | | | | | | | | | | * tests/error.test: Tcl_SetReturnOptions() calls as a simple fix for [Bug 2855247]. Thanks to Anton Kovalenko for the report and fix. Additional fixes for other failures demonstrated by new tests.
* | | * tests/error.test (error-15.9.*): More coverage tests for [try].dgp2009-09-281-2/+11
| | | | | | | | | | | | Test error-15.9.3.0.0 covers [Bug 2855247].
* | | * tests/error.test (error-15.8.*): Coverage tests illustratingdgp2009-09-281-1/+18
| | | | | | | | | | | | flaws in the propagation of return options by [try].
* | | Move the implementation of [try] from Tcl to C. Not yet bytecoded.dkf2009-03-091-13/+13
| | |
* | | Move [throw] implementation into C.dkf2009-01-131-1/+16
| | |
* | | Added tests for [throw] and [try].dkf2008-12-161-41/+563
|/ /
* | * tests/*.test: updated all tests to refer explicitly to thetip_278_20061009Miguel Sofer2006-10-091-21/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | global variables ::errorInfo, ::errorCode, ::env and ::tcl_platform: many were relying on the alternative lookup in the global namespace, that feature is tested specifically in namespace and variable tests. The modified testfiles are: apply.test, basic.test, case.test, cmdIL.test, cmdMZ.test, compExpr-old.test, error.test, eval.test, event.test, expr.test, fileSystem.test, for.test, http.test, if.test, incr-old.test, incr.test, interp.test, io.test, ioCmd.test, load.test, misc.test, namespace.test, parse.test, parseOld.test, pkg.test, proc-old.test, set.test, switch.test, tcltest.test, thread.test, var.test, while-old.test, while.test.
* | Fix test suite bugs exposed by -singleproc 1 -debug 1 run. Each testdgp2006-01-181-2/+2
| | | | | | | | | | file needs to avoid stomping on the assumptions of other files, and protect against getting stomped as well.
* | * generic/tclBasic.c: Moved Tcl_LogCommandInfo from tclBasic.c todgp2006-01-111-2/+21
| | | | | | | | | | | | | | | | | | | | * generic/tclNamesp.c: tclNamesp.c to get access to identifier with * tests/error.test (error-7.0): file scope. Added check for traces on ::errorInfo, and when present fall back to contruction of the stack trace in the variable so that write trace notification timings are compatible with earlier Tcl releases. This reduces, but does not completely eliminate the ***POTENTIAL INCOMPATIBILITY*** created by the 2004-10-15 commit. [Bug 1397843].
* | * tests/compExpr-old.test: Still more conversion of "nonPortable"dgp2005-07-281-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | * tests/error.test: tests into tests with constraints that * tests/expr-old.test: describe the limits of their * tests/expr.test: portability. Also more consolidation * tests/fileName.test: of constraint synonyms. * tests/format.test: wideis64bit, 64bitInts => wideIs64bit * tests/get.test: wideIntegerUnparsed => wideIs32bit * tests/load.test: wideIntExpressions => wideBiggerThanInt * tests/obj.test: * tests/parseExpr.test: Dropped "roundOffBug" constraint that * tests/string.test: protected from buggy sprintf.
* | * generic/tclBasic.c (Tcl_AddObjErrorInfo): More re-organizationdgp2004-09-301-1/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * generic/tclCmdAH.c (Tcl_ErrorObjCmd): of the management of * generic/tclCmdMZ.c (TclProcessReturn): the errorCode value. * tests/error.test (error-6.4-9): * generic/tclNamespace.c (TclTeardownNamespace): Tcl_Obj-ified * tests/namespace.test (namespace-8.5,6): the save/restore of ::errorInfo and ::errorCode during global namespace teardown. Revised the comment to clarify why this is done, and added tests that will fail if this is not done. * generic/tclResult.c (TclTransferResult): Added safety checks so that unexpected undefined ::errorInfo or ::errorCode will not lead to a segfault. * generic/tclTrace.c (TclCallVarTraces): Save/restore the flag * tests/var.test (var-16.1): values that define part of the interpreter state during variable traces. [Bug 10381021].
* | * tests/error.test (error-6.2,3): Added more tests to verifydgp2004-09-201-1/+10
| | | | | | | | ::errorCode setting by/after a [catch].
* | * generic/tclBasic.c: Implementation of TIP 90, whichdgp2003-05-051-6/+6
|/ | | | | | | | | | | | | | | | * generic/tclCmdAH.c: extends the [catch] and [return] * generic/tclCompCmds.c: commands to enable creation of a * generic/tclExecute.c: proc that is a replacement for * generic/tclInt.h: [return]. [Patch 531640] * generic/tclProc.c: * generic/tclResult.c: * tests/cmdAH.test: * tests/cmdMZ.test: * tests/error.test: * tests/proc-old.test: * library/tcltest/tcltest.tcl: The -returnCodes option to [test] failed to recognize the symbolic name "ok" for return code 0.
* updated error-1.3 result that changed with string bc correctionhobbs2002-01-291-5/+3
|
* * tests/error.test: updated error-1.3 message to account forhobbs2001-05-171-3/+7
| | | | string index being compiled at toplevel.
* * tests/*.test: Changed all occurances of "namespace importericm2000-04-101-2/+2
| | | | ::tcltest" to "namespace import -force ::tcltest" [Bug: 3948].
* Modified the tests to use the package tcltestjenn1999-06-261-2/+3
|
* * doc/string.n:stanton1999-05-061-19/+7
| | | | | | | | | | | | | | | | | | | | * tests/cmdIL.test: * tests/cmdMZ.test: * tests/error.test: * tests/ioCmd.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * tests/cmdIL.test: * generic/tclUtil.c: * generic/tclCmdMZ.c: Replaced "string icompare/iequal" with -nocase and -length switches to "string compare/equal". Added a -nocase option to "string map". Changed index syntax to allow integer or end?-integer? instead of a full expression. This is much simpler with safeTcl scripts since it avoids double substitution issues.
* * tests/cmdIL.test:stanton1999-05-041-3/+3
| | | | | | | | | | | | | * tests/cmdMZ.test: * tests/error.test: * tests/lindex.test: * tests/linsert.test: * tests/lrange.test: * tests/lreplace.test: * tests/string.test: * generic/tclCmdMZ.c (Tcl_StringObjCmd): * generic/tclUtil.c (TclGetIntForIndex): Applied Jeff Hobbs's string patch which includes the following changes [Bug: 1845]:
* merged tcl 8.1 branch back into the main trunkstanton1999-04-161-3/+20
|
* Replaced SCCS strings, fixed binary filescore_8_0_3stanton1998-09-141-1/+1
|
* Initial revisionrjohnson1998-03-261-0/+175