choroba has asked for the wisdom of the Perl Monks concerning the following question:
versusTest Summary Report ------------------- t/text.t (Wstat: 0 Tests: 415 Failed: 0) TODO passed: 121 Files=1, Tests=415, 2 wallclock secs ( 0.20 usr 0.02 sys + 0.98 cus +r 0.05 csys = 1.25 CPU) Result: PASS t/text.t .. 289/415 Stack moved 887d7ec => 887d7f0 t/text.t .. ok All tests successful.
Test Summary Report ------------------- t/text.t (Wstat: 0 Tests: 415 Failed: 0) TODO passed: 121 Files=1, Tests=415, 2 wallclock secs ( 0.22 usr 0.01 sys + 0.94 cus +r 0.05 csys = 1.22 CPU) Result: PASS t/text.t .. 247/415 # Failed test at t/text.t line 1548. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 887d934 => 887d938 t/text.t .. 403/415 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 32 skipped subtests: 382 okay) (1 TODO test unexpectedly succeeded)
If I add a sleep 1; before the eval line (marked with *), the test passes everytimes. The question is: is this a bug? Or just a poorly written test? Or...?{ $t2->destroy if Tk::Exists($t2); $t2 = $mw->Text; $t2->insert('1.0', "abcdef\nghijk\n1234"); $t2->tagAdd('sel', '1.0', '1.3'); is($mw->SelectionGet, 'abc'); $mw->SelectionClear; # * eval { $mw->SelectionGet }; like($@, qr{\QPRIMARY selection doesn't exist or form "STRING" not + defined}); $t2->tagAdd('sel', '1.0', '1.3'); is($mw->SelectionGet, 'abc'); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tk: Cannot install from CPAN sometimes.
by zentara (Cardinal) on Oct 28, 2010 at 17:16 UTC | |
by choroba (Cardinal) on Oct 28, 2010 at 18:10 UTC | |
by zentara (Cardinal) on Oct 28, 2010 at 19:36 UTC | |
by choroba (Cardinal) on Oct 28, 2010 at 20:22 UTC | |
by zentara (Cardinal) on Oct 29, 2010 at 10:54 UTC | |
| |
|
Re: Tk: Cannot install from CPAN sometimes.
by thundergnat (Deacon) on Oct 29, 2010 at 15:32 UTC | |
by choroba (Cardinal) on Oct 29, 2010 at 15:38 UTC |