summaryrefslogtreecommitdiffstats
path: root/tests/unixFont.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2022-11-27 11:11:24 (GMT)
committerfvogel <fvogelnew1@free.fr>2022-11-27 11:11:24 (GMT)
commit1d9db21e6c8179d6b535f3dc448540dcb9a097fb (patch)
treef7057a8e0fdd4796ed965cace0cdf2842392c505 /tests/unixFont.test
parent081f863e54063f377dae45d88e0386f2a4bb7275 (diff)
parent93675a4f287cd68a5bf7e45a6f95bfc43ff9f0b3 (diff)
downloadtk-1d9db21e6c8179d6b535f3dc448540dcb9a097fb.zip
tk-1d9db21e6c8179d6b535f3dc448540dcb9a097fb.tar.gz
tk-1d9db21e6c8179d6b535f3dc448540dcb9a097fb.tar.bz2
Merge less_tests_constraints branch: Remove constraints when possible, or replace them by much more specific constraints. The CI runner case for Linux with --disable-xft is now clear: tests fail because there is ONE single font available in this configuration.
Diffstat (limited to 'tests/unixFont.test')
-rw-r--r--tests/unixFont.test3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unixFont.test b/tests/unixFont.test
index ff16750..3661ae2 100644
--- a/tests/unixFont.test
+++ b/tests/unixFont.test
@@ -17,7 +17,6 @@ eval tcltest::configure $argv
tcltest::loadTestedCommands
testConstraint failsOnUbuntu [expr {![info exists ::env(CI)] || ![string match Linux $::tcl_platform(os)]}]
-testConstraint failsOnUbuntuNoXft [expr {[testConstraint failsOnUbuntu] || (![catch {tk::pkgconfig get fontsystem} fs] && ($fs eq "xft"))}]
testConstraint failsOnXQuarz [expr {$tcl_platform(os) ne "Darwin" || [tk windowingsystem] ne "x11" }]
if {[tk windowingsystem] eq "x11"} {
@@ -118,7 +117,7 @@ test unixfont-2.8 {TkpGetFontFromAttributes: loop over returned font names} {x11
test unixfont-2.9 {TkpGetFontFromAttributes: reject adobe courier if possible} {x11 noExceed failsOnUbuntu} {
lindex [font actual {-family courier}] 1
} {courier}
-test unixfont-2.10 {TkpGetFontFromAttributes: scalable font found} {x11 failsOnUbuntuNoXft} {
+test unixfont-2.10 {TkpGetFontFromAttributes: scalable font found} {x11 haveCourier37Font} {
lindex [font actual {-family courier -size 37}] 3
} {37}
test unixfont-2.11 {TkpGetFontFromAttributes: font cannot be loaded} x11 {