diff options
author | dgp <dgp@users.sourceforge.net> | 2004-10-25 20:24:06 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2004-10-25 20:24:06 (GMT) |
commit | 2ddf71d5d424c34dfbcc0b9f55cf9baeabbe9e4b (patch) | |
tree | ffc6b697abc55d76757181f5a753ccc2895f2a58 /tests/thread.test | |
parent | a982cad7ac7f927864d62b50b62a961526b15852 (diff) | |
download | tcl-2ddf71d5d424c34dfbcc0b9f55cf9baeabbe9e4b.zip tcl-2ddf71d5d424c34dfbcc0b9f55cf9baeabbe9e4b.tar.gz tcl-2ddf71d5d424c34dfbcc0b9f55cf9baeabbe9e4b.tar.bz2 |
* generic/tclExecute.c (IllegalExprOperandType,TclExecuteByteCode):
Removed several DECACHE_INFO/CACHE_INFO pairs that are no longer
needed for protection because routines like Tcl_SetErrorCode() and
Tcl_AddErrorInfo() can no longer re-enter bytecode execution.
* generic/tclResult.c (TclProcessReturn): Bug fix. Be sure that
a missing -errorinfo option when code == TCL_ERROR causes the
errorInfo field to get reset.
* tests/thread.test (thread-4.4): Test depended on a ::errorInfo
value initialized to "". Added code to test to setup that requirement.
Diffstat (limited to 'tests/thread.test')
-rw-r--r-- | tests/thread.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/thread.test b/tests/thread.test index 8e7c471..50c3360 100644 --- a/tests/thread.test +++ b/tests/thread.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: thread.test,v 1.13 2004/06/18 15:06:43 dkf Exp $ +# RCS: @(#) $Id: thread.test,v 1.14 2004/10/25 20:24:14 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -195,7 +195,7 @@ test thread-4.4 {TclThreadSend preserve code} {testthread} { threadReap set len [llength [testthread names]] set serverthread [testthread create] - set x [catch {testthread send $serverthread {break}} msg] + set x [catch {testthread send $serverthread {set errorInfo {}; break}} msg] threadReap list $len $x $msg $errorInfo } {1 3 {} {}} |