From 47e354c057a23b44bdb4492bd502e6974d1d70b2 Mon Sep 17 00:00:00 2001 From: hershey Date: Wed, 12 Aug 1998 15:35:09 +0000 Subject: returns if testwrapper is not defined --- tests/focus.test | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/focus.test b/tests/focus.test index 4aa4da3..500a46c 100644 --- a/tests/focus.test +++ b/tests/focus.test @@ -198,6 +198,12 @@ test focus-1.25 {Tk_FocusCmd procedure} { list [catch {focus -unknown} msg] $msg } {1 {bad option "-unknown": must be -displayof, -force, or -lastfor}} +if {[string compare testwrapper [info commands testwrapper]] != 0} { + puts "This application hasn't been compiled with the testwrapper command," + puts "therefore I am skipping all of these tests." + return +} + test focus-2.1 {TkFocusFilterEvent procedure} {nonPortable} { focus -force .b destroy .t -- cgit v0.12