diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-23 10:33:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-23 10:33:56 (GMT) |
commit | 88a38acd049b4cef382444545c2e48764f4a43e3 (patch) | |
tree | c034856c595242f23cb91f8aeb0156e618c2111f /tests/font.test | |
parent | ae1b79d466c7d533c3bb7722d7e19860461055fa (diff) | |
download | tk-88a38acd049b4cef382444545c2e48764f4a43e3.zip tk-88a38acd049b4cef382444545c2e48764f4a43e3.tar.gz tk-88a38acd049b4cef382444545c2e48764f4a43e3.tar.bz2 |
Mark many testcases with "failsOnUbuntu" (Not all, I still want to see the remainings failing)
Diffstat (limited to 'tests/font.test')
-rw-r--r-- | tests/font.test | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tests/font.test b/tests/font.test index 6175b32..c3f6413 100644 --- a/tests/font.test +++ b/tests/font.test @@ -17,6 +17,8 @@ update idletasks set defaultfontlist [font names] +testConstraint failsOnUbuntu [expr {![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}] + proc getnondefaultfonts {} { global defaultfontlist set nondeffonts [list ] @@ -154,7 +156,7 @@ test font-4.8 {font command: actual: all attributes} { # not (objc > 3) so objPtr = NULL lindex [font actual {-family times}] 0 } {-family} -test font-4.9 {font command: actual} {unix noExceed} { +test font-4.9 {font command: actual} {unix noExceed failsOnUbuntu} { # (objc > 3) so objPtr = objv[3 + skip] string tolower [font actual {-family times} -family] } {times} @@ -318,7 +320,7 @@ test font-8.3 {font command: families: arguments} { # (objc - skip != 2) when skip == 2 list [catch {font families -displayof . xyz} msg] $msg } {1 {wrong # args: should be "font families ?-displayof window?"}} -test font-8.4 {font command: families} { +test font-8.4 {font command: families} failsOnUbuntu { # TkpGetFontFamilies() regexp -nocase times [font families] } {1} @@ -339,7 +341,7 @@ test font-9.4 {font command: measure: arguments} {noExceed} { # (tkfont == NULL) list [catch {font measure "\{xyz" abc} msg] $msg } [list 1 "font \"{xyz\" doesn't exist"] -test font-9.5 {font command: measure} { +test font-9.5 {font command: measure} failsOnUbuntu { # Tk_TextWidth() expr [font measure $fixed "abcdefg"]==[font measure $fixed "a"]*7 } {1} @@ -388,7 +390,7 @@ test font-10.8 {font command: metrics: bad metric} { # (Tcl_GetIndexFromObj() != TCL_OK) list [catch {font metrics $fixed -xyz} msg] $msg } {1 {bad metric "-xyz": must be -ascent, -descent, -linespace, or -fixed}} -test font-10.9 {font command: metrics: get individual metrics} { +test font-10.9 {font command: metrics: get individual metrics} failsOnUbuntu { font metrics $fixed -ascent font metrics $fixed -descent font metrics $fixed -linespace @@ -628,7 +630,7 @@ test font-17.6 {Tk_FreeFont procedure: named font not deleted yet} { list [lindex [font actual xyz] 0] [lindex $x 0] } {-family -family} -test font-18.1 {FreeFontObjProc} testfont { +test font-18.1 {FreeFontObjProc} {testfont failsOnUbuntu} { destroy .b1 set x [format {Courier 12}] button .b1 -font $x @@ -696,7 +698,7 @@ test font-21.8 {Tk_PostscriptFontName procedure: spaces} unix { set x {LucidaBright} } } {LucidaBright} -test font-21.9 {Tk_PostscriptFontName procedure: spaces} unix { +test font-21.9 {Tk_PostscriptFontName procedure: spaces} {unix failsOnUbuntu} { psfontname "{new century schoolbook} 10" } {NewCenturySchlbk-Roman} set i 10 @@ -795,7 +797,7 @@ test font-24.4 {Tk_ComputeTextLayout: calls Tk_MeasureChars} { .b.l config -text "000\n000" getsize } "[expr $ax*3] [expr $ay*2]" -test font-24.5 {Tk_ComputeTextLayout: break line} { +test font-24.5 {Tk_ComputeTextLayout: break line} failsOnUbuntu { .b.l config -text "000\t00000" -wrap [expr 9*$ax] set x [getsize] .b.l config -wrap 0 @@ -1110,7 +1112,7 @@ test font-31.6 {Tk_IntersectTextLayout procedure: ignore spaces at eol} { set x } {} -test font-32.1 {Tk_TextLayoutToPostscript: ensure buffer doesn't overflow} { +test font-32.1 {Tk_TextLayoutToPostscript: ensure buffer doesn't overflow} failsOnUbuntu { # If there were a whole bunch of returns or tabs in a row, then the # temporary buffer could overflow and write on the stack. @@ -1346,7 +1348,7 @@ test font-43.1 {FieldSpecified procedure: specified vs. non-specified} { set oldscale [tk scaling] tk scaling 0.5 -test font-44.1 {TkFontGetPixels: size < 0} { +test font-44.1 {TkFontGetPixels: size < 0} failsOnUbuntu { font actual {times -12} -size } {24} test font-44.2 {TkFontGetPoints: size >= 0} {noExceed} { |