Skip Menu |

This queue is for tickets about the Tk CPAN distribution.

Report information
The Basics
Id: 99411
Status: resolved
Priority: 0/
Queue: Tk

People
Owner: Nobody in particular
Requestors: ppisar [...] redhat.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 804.032
Fixed in: 804.032_500



Subject: "Num. of font families=1" t/font.t fails if not enough fonts is installed
If I have very sparse list of fonts installed, the "Num. of font families=1" t/font.t test fails: $ xvfb-run -a prove -b -v t/font.t t/font.t .. 1..34 ok 1 - fontFamilies not ok 2 - Num. of font families=1 ok 3 - fontActual without font error ok 4 - fontMeasure documented to require two args, not zero ok 5 - fontMeasure documented to require two args, not one # Failed test 'Num. of font families=1' # at t/font.t line 40. # '1' # > # '1' I have enabled XFT and use Xfvb X server. I tested the git master code (39ce3fa5). If I install another font, like liberation-sans-fonts, the test will pass because gathered list of font families expands from ('Gothic') to to ('Gothic', 'Liberation Sans') on the system. I can confirm the values with a freetype command "fc-list : family". What is the test good for? Does it matter how many different fonts user have available? -- Petr
On 2014-10-10 03:42:38, ppisar wrote: Show quoted text
> If I have very sparse list of fonts installed, the "Num. of font > families=1" t/font.t test fails: > > $ xvfb-run -a prove -b -v t/font.t > t/font.t .. > 1..34 > ok 1 - fontFamilies > not ok 2 - Num. of font families=1 > ok 3 - fontActual without font error > ok 4 - fontMeasure documented to require two args, not zero > ok 5 - fontMeasure documented to require two args, not one > > # Failed test 'Num. of font families=1' > # at t/font.t line 40. > # '1' > # > > # '1' > > I have enabled XFT and use Xfvb X server. I tested the git master code > (39ce3fa5). > > If I install another font, like liberation-sans-fonts, the test will > pass because gathered list of font families expands from ('Gothic') to > to ('Gothic', 'Liberation Sans') on the system. I can confirm the > values with a freetype command "fc-list : family". > > What is the test good for? Does it matter how many different fonts > user have available?
Replaced > with >=, see commit 9ca806eceddd40e3739e284d34208a2f7f2cb9e9