summaryrefslogtreecommitdiffstats
path: root/tests/thread.test
diff options
context:
space:
mode:
authorpatthoyts <patthoyts@noemail.net>2007-08-21 20:16:02 (GMT)
committerpatthoyts <patthoyts@noemail.net>2007-08-21 20:16:02 (GMT)
commita3a3d849676b741817eac09546a74d626beac4bf (patch)
tree71d9624fdf92cb259438e2910c5a29289ee4ec07 /tests/thread.test
parent44a3b4b6f54017572c022a7bfb2985c745a301e7 (diff)
downloadtcl-a3a3d849676b741817eac09546a74d626beac4bf.zip
tcl-a3a3d849676b741817eac09546a74d626beac4bf.tar.gz
tcl-a3a3d849676b741817eac09546a74d626beac4bf.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.
FossilOrigin-Name: 6461c7599ac9600e4cd52f5508e871c51431ad3a
Diffstat (limited to 'tests/thread.test')
-rw-r--r--tests/thread.test4
1 files changed, 2 insertions, 2 deletions
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 {} {}}