summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjenn <jenn@noemail.net>1999-08-18 00:31:49 (GMT)
committerjenn <jenn@noemail.net>1999-08-18 00:31:49 (GMT)
commit2eb2060e5c5b0141c2946a83b1ce2a930d76d41a (patch)
tree7567b493783eb7c5912a58c4173d9e33344ec9f6 /tests
parent6d93df78d9d4867ee741706782480b50e6e4042e (diff)
downloadtk-2eb2060e5c5b0141c2946a83b1ce2a930d76d41a.zip
tk-2eb2060e5c5b0141c2946a83b1ce2a930d76d41a.tar.gz
tk-2eb2060e5c5b0141c2946a83b1ce2a930d76d41a.tar.bz2
Run these tests only if "testmetrics" is defined (i.e. tktest is
being used). FossilOrigin-Name: dadc630d005a280d6ae369061f1dd0f101e80c4e
Diffstat (limited to 'tests')
-rw-r--r--tests/scrollbar.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/scrollbar.test b/tests/scrollbar.test
index 0328043..6495034 100644
--- a/tests/scrollbar.test
+++ b/tests/scrollbar.test
@@ -7,12 +7,20 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: scrollbar.test,v 1.3 1999/04/16 01:51:40 stanton Exp $
+# RCS: @(#) $Id: scrollbar.test,v 1.4 1999/08/18 00:31:50 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
source [file join [pwd] [file dirname [info script]] defs.tcl]
}
+if {[info commands testmetrics] == {}} {
+ puts "This application hasn't been compiled with the \"testmetrics\""
+ puts "command, so I can't run this test. Are you sure you're using"
+ puts "tktest instead of wish?"
+ ::tcltest::cleanupTests
+ return
+}
+
foreach i [winfo children .] {
destroy $i
}