diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2004-06-17 22:38:55 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2004-06-17 22:38:55 (GMT) |
commit | f392e85e5387f7a06149463c29397359e4ba483f (patch) | |
tree | 6b824bed75789a3a95889126d5c52a7d76e579af /tests/unixFont.test | |
parent | 980bc6bcaff11ef9bc9c459beed9a6514f3564c2 (diff) | |
download | tk-f392e85e5387f7a06149463c29397359e4ba483f.zip tk-f392e85e5387f7a06149463c29397359e4ba483f.tar.gz tk-f392e85e5387f7a06149463c29397359e4ba483f.tar.bz2 |
Steps towards systematization of test constraints in Tk test suite
Diffstat (limited to 'tests/unixFont.test')
-rw-r--r-- | tests/unixFont.test | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tests/unixFont.test b/tests/unixFont.test index c1244c3..2fa36a6 100644 --- a/tests/unixFont.test +++ b/tests/unixFont.test @@ -12,22 +12,20 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: unixFont.test,v 1.9 2004/05/23 17:34:49 dkf Exp $ +# RCS: @(#) $Id: unixFont.test,v 1.10 2004/06/17 22:38:57 dkf Exp $ package require tcltest 2.1 eval tcltest::configure $argv tcltest::loadTestedCommands -testConstraint hasArial 1 -testConstraint hasCourierNew 1 -testConstraint hasTimesNew 1 set xlsf [auto_execok xlsfonts] -if {[llength $xlsf]} { - foreach {constraint font} { - hasArial arial - hasCourierNew "courier new" - hasTimesNew "times new roman" - } { +foreach {constraint font} { + hasArial arial + hasCourierNew "courier new" + hasTimesNew "times new roman" +} { + testConstraint $constraint 1 + if {[llength $xlsf]} { if {![catch {eval exec $xlsf [list *-$font-*]} res] && ![string match *unmatched* $res]} { # Newer Unix systems have more default fonts installed, |