diff options
Diffstat (limited to 'library/tcltest')
-rw-r--r-- | library/tcltest/tcltest.tcl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl index d633b21..0fd2090 100644 --- a/library/tcltest/tcltest.tcl +++ b/library/tcltest/tcltest.tcl @@ -12,7 +12,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: tcltest.tcl,v 1.15 1999/10/19 18:08:42 jenn Exp $ +# RCS: @(#) $Id: tcltest.tcl,v 1.16 1999/10/20 01:27:05 jenn Exp $ package provide tcltest 1.0 @@ -529,8 +529,12 @@ proc ::tcltest::initConstraints {} { set ::tcltest::testConstraints(userInteraction) 0 # Some tests must be skipped if the interpreter is not in interactive mode - - set ::tcltest::testConstraints(interactive) $tcl_interactive + + if {[info exists tcl_interactive]} { + set ::tcltest::testConstraints(interactive) $::tcl_interactive + } else { + set ::tcltest::testConstraints(interactive) 0 + } # Some tests can only be run if the installation came from a CD image # instead of a web image @@ -1239,7 +1243,7 @@ proc ::tcltest::cleanupTests {{calledFromAllFile 0}} { # exit only if running Tk in non-interactive mode global tk_version tcl_interactive - if {[info exists tk_version] && !$tcl_interactive} { + if {[info exists tk_version] && ![info exists tcl_interactive]} { exit } } else { |