diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2007-08-21 20:16:03 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2007-08-21 20:16:03 (GMT) |
commit | 2d087cd971d85e6e4bb484878b61f0ce4d845b6b (patch) | |
tree | 71d9624fdf92cb259438e2910c5a29289ee4ec07 | |
parent | 835252ce9b5e69bf41e470277be070640f02422b (diff) | |
download | tcl-2d087cd971d85e6e4bb484878b61f0ce4d845b6b.zip tcl-2d087cd971d85e6e4bb484878b61f0ce4d845b6b.tar.gz tcl-2d087cd971d85e6e4bb484878b61f0ce4d845b6b.tar.bz2 |
thread-4.4: clear ::errorInfo in the thread as a message is left here from init.tcl on windows due to no tcl_pkgPath.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | tests/thread.test | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2007-08-21 Pat Thoyts <patthoyts@users.sourceforge.net> + + * tests/thread.test: thread-4.4: clear ::errorInfo in the thread as + a message is left here from init.tcl on windows due to no tcl_pkgPath. + 2007-08-20 Miguel Sofer <msofer@users.sf.net> * generic/tclExecute.c (INST_SUB): fix usage of the new macro for diff --git a/tests/thread.test b/tests/thread.test index 09c2edb..6dad850 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.16 2007/08/14 15:17:50 dgp Exp $ +# RCS: @(#) $Id: thread.test,v 1.17 2007/08/21 20:16:05 patthoyts Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -196,7 +196,7 @@ test thread-4.4 {TclThreadSend preserve code} {testthread} { set len [llength [testthread names]] set serverthread [testthread create] set ::errorInfo {} - 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 {} {}} |