diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2019-12-01 13:48:48 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2019-12-01 13:48:48 (GMT) |
commit | d138d28133e65fbabfecdf4ed817196b81debc81 (patch) | |
tree | e0cf412c78393913c6b6181a4f78a51e72fd1776 /library/tcltest | |
parent | 3435c9713f7b20d9061a5b2758728e66846c8989 (diff) | |
download | tcl-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.tcl | 12 |
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 } ##################################################################### |