summaryrefslogtreecommitdiffstats
path: root/library/tcltest
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2019-12-01 13:48:48 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2019-12-01 13:48:48 (GMT)
commitd138d28133e65fbabfecdf4ed817196b81debc81 (patch)
treee0cf412c78393913c6b6181a4f78a51e72fd1776 /library/tcltest
parent3435c9713f7b20d9061a5b2758728e66846c8989 (diff)
downloadtcl-d138d28133e65fbabfecdf4ed817196b81debc81.zip
tcl-d138d28133e65fbabfecdf4ed817196b81debc81.tar.gz
tcl-d138d28133e65fbabfecdf4ed817196b81debc81.tar.bz2
Fix tcltest::SetupTest added in previous commit.
Diffstat (limited to 'library/tcltest')
-rw-r--r--library/tcltest/tcltest.tcl12
1 files changed, 5 insertions, 7 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl
index 2d36d13..820e978 100644
--- a/library/tcltest/tcltest.tcl
+++ b/library/tcltest/tcltest.tcl
@@ -1983,8 +1983,9 @@ proc tcltest::test {name description args} {
}
# First, run the setup script
- lassign [uplevel 1 [list [
- namespace which SetupScript] $setup]] code setupMsg
+ set code [catch {
+ uplevel 1 [list [namespace which SetupTest] $setup]
+ } setupMsg]
if {$code == 1} {
set errorInfo(setup) $::errorInfo
set errorCodeRes(setup) $::errorCode
@@ -2368,11 +2369,8 @@ proc tcltest::RunTest {name script} {
#
# Evaluates the -setup script for a test
-proc tcltest::SetupTest {name script} {
- DebugPuts 3 [list Setup Script for $name $script]
-
- set code [catch {uplevel 1 $setup} setupMsg]
- return [list $code $setupMsg]
+proc tcltest::SetupTest setup {
+ uplevel 1 $setup
}
#####################################################################