From 57b58ae0e513fd6e227c0bba08a0f0bd6208d51a Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 11 Jul 2002 19:02:58 +0000 Subject: * Corrected reaction to existing but false ::tcl_interactive. --- library/tcltest/tcltest.tcl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl index f5cc4a2..b302e94 100644 --- a/library/tcltest/tcltest.tcl +++ b/library/tcltest/tcltest.tcl @@ -16,7 +16,7 @@ # Contributions from Don Porter, NIST, 2002. (not subject to US copyright) # All rights reserved. # -# RCS: @(#) $Id: tcltest.tcl,v 1.69 2002/07/10 18:51:54 dgp Exp $ +# RCS: @(#) $Id: tcltest.tcl,v 1.70 2002/07/11 19:02:58 dgp Exp $ package require Tcl 8.3 ;# uses [glob -directory] namespace eval tcltest { @@ -2385,8 +2385,7 @@ proc tcltest::cleanupTests {{calledFromAllFile 0}} { # loop is running, which is the real issue. # Actually, this doesn't belong here at all. A package # really has no business [exit]-ing an application. - if {![catch {package present Tk}] - && ![info exists ::tcl_interactive]} { + if {![catch {package present Tk}] && ![testConstraint interactive]} { exit } } else { -- cgit v0.12