diff options
Diffstat (limited to 'tk/tests/main.test')
-rw-r--r-- | tk/tests/main.test | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/tk/tests/main.test b/tk/tests/main.test index 21bd20956ee..56b6690e328 100644 --- a/tk/tests/main.test +++ b/tk/tests/main.test @@ -5,14 +5,13 @@ # generates output for errors. No output means no errors were found. # # Copyright (c) 1997 by Sun Microsystems, Inc. -# -# See the file "license.terms" for information on usage and redistribution -# of this file, and for a DISCLAIMER OF ALL WARRANTIES. +# Copyright (c) 1998-1999 by Scriptics Corporation. +# All rights reserved. # # RCS: @(#) $Id$ -if {[info procs test] != "test"} { - source defs +if {[lsearch [namespace children] ::tcltest] == -1} { + source [file join [pwd] [file dirname [info script]] defs.tcl] } test main-1.1 {StdinProc} {unixOnly} { @@ -22,10 +21,29 @@ test main-1.1 {StdinProc} {unixOnly} { close stdin; exit } close $fd - if {[catch {exec $tktest <script} msg]} { + if {[catch {exec $::tcltest::tktest <script} msg]} { set error 1 } else { set error 0 } + file delete -force script list $error $msg } {0 {}} + +# cleanup +catch {removeFile script} +::tcltest::cleanupTests +return + + + + + + + + + + + + + |