Subject: | make test failure in listbox under KDE |
Error during make test
t/listbox.t .................. 1/537
# Failed test at t/listbox.t line 741.
# got: '0'
# expected: '1'
t/listbox.t .................. 318/537 # Looks like you failed 1 test of
537.
t/listbox.t .................. Dubious, test returned 1 (wstat 256, 0x100)
listbox.t contents:
737: is($lb->index('@0,0'), 13);
738:
739: mkPartial();
740: $partial_lb->see(4);
741: is($partial_lb->index('@0,0'), 1);
742:
743: eval { $lb->selection };
Stopping at that test shows that $partial_lb has 5 lines visible, but
is not scrolled to the correct place.
Environment:
Perl 5.12.4
Tk 804.030+ from github Nov 16, 2012
Distro Fedora 15
WM KDE Kwin 4.6.5
Note: If I add an update like below then the test passes:
diff --git a/t/listbox.t b/t/listbox.t
index dd8b236..ee39098 100644
--- a/t/listbox.t
+++ b/t/listbox.t
@@ -738,6 +738,7 @@ is($lb->index('@0,0'), 13);
mkPartial();
$partial_lb->see(4);
+$partial_top->update;
is($partial_lb->index('@0,0'), 1);