On Mon, Sep 15, 2014 at 04:43:17PM -0400, Slaven_Rezic via RT wrote:
Show quoted textYes, the XFT is enabled.
Show quoted text> In this case: can you try the attached "dirty" patch and tell me
> - whether the test passes
No.
Show quoted text> - what's the data dumper output here
>
I cannot reproduce the single failing test #335 from. Now test #297 fails.
If I apply the patch and I have the liberation-sans-fonts installed, tests
pass and the Dumper output is:
# $VAR1 = {
# "-size" => -12,
# "-overstrike" => 0,
# "-weight" => "normal",
# "-slant" => "roman",
# "-family" => "liberation sans",
# "-underline" => 0
# };
# $VAR2 = {
# "-size" => -12,
# "-overstrike" => 0,
# "-slant" => "roman",
# "-weight" => "normal",
# "-family" => "helvetica",
# "-underline" => 0
# };
# $VAR3 = 0;
If I apply the patch and remove the fonts, the Dumper output is:
# $VAR1 = {
# "-family" => "gothic",
# "-slant" => "roman",
# "-underline" => 0,
# "-size" => -12,
# "-weight" => "normal",
# "-overstrike" => 0
# };
# $VAR2 = {
# "-underline" => 0,
# "-size" => -12,
# "-weight" => "normal",
# "-overstrike" => 0,
# "-family" => "helvetica",
# "-slant" => "roman"
# };
# $VAR3 = 0;
and test failure is:
# Failed test at t/entry.t line 1077.
# '22'
# >=
# '23'
# Looks like you failed 1 test of 351.
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/351 subtests
(less 39 skipped subtests: 311 okay)
Test Summary Report
-------------------
t/entry.t (Wstat: 256 Tests: 351 Failed: 1)
Failed test: 297
This is the code with all saying comment:
$x = "abcde";
$y = "ab";
$e->configure(-textvariable => \$x);
$e->update;
$e->configure(-textvariable => \$y);
$e->update;
is($e->get, "ab");
# On Unix/X11 and Windows it's 24, on cygwin/X11 with Xvfb running it's 25,
# on Mac OS X with XFT=1 and a remote Xserver it's 23:
cmp_ok($e->reqwidth, ">=", 23);
cmp_ok($e->reqwidth, "<=", 25);
Just for your information, I use Xvfb.
-- Petr