It is exactly what I did. Sometimes, the tests are OK and installation is possible, sometimes it is not. I tried running just the single test for many times, without the sleep, it just randomly fails.
For example:
root@weed# for a in {1..10} ; do /usr/bin/perl "-It" "-MTkTest" "-MExt +Utils::Command::MM" "-e" "check_display_harness; test_harness(0, 'bli +b/lib', 'blib/arch')" t/text.t ; done t/text.t .. 70/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c3e4 => 896c3e8 t/text.t .. 394/415 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 2 wallclock secs ( 0.20 usr 0.02 sys + 1.09 cus +r 0.04 csys = 1.35 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 279/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c43c => 896c440 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 2 wallclock secs ( 0.22 usr 0.01 sys + 1.12 cus +r 0.06 csys = 1.41 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 4/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c39c => 896c3a0 t/text.t .. 361/415 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 2 wallclock secs ( 0.22 usr 0.02 sys + 1.11 cus +r 0.07 csys = 1.42 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 275/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c3ac => 896c3b0 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 3 wallclock secs ( 0.21 usr 0.01 sys + 1.12 cus +r 0.06 csys = 1.40 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 291/415 Stack moved 896c4bc => 896c4c0 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.20 usr 0.01 sys + 1.14 cus +r 0.05 csys = 1.40 CPU) Result: PASS t/text.t .. 192/415 Stack moved 896c39c => 896c3a0 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, 3 wallclock secs ( 0.22 usr 0.02 sys + 1.13 cus +r 0.04 csys = 1.41 CPU) Result: PASS t/text.t .. 282/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c4b4 => 896c4b8 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 2 wallclock secs ( 0.20 usr 0.02 sys + 1.14 cus +r 0.04 csys = 1.40 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 34/415 Stack moved 896c4c4 => 896c4c8 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 + 1.11 cus +r 0.04 csys = 1.38 CPU) Result: PASS t/text.t .. 282/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c4c4 => 896c4c8 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 2 wallclock secs ( 0.19 usr 0.03 sys + 1.08 cus +r 0.04 csys = 1.34 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed. t/text.t .. 146/415 # Failed test at t/text.t line 1549. # '' # doesn't match '(?-xism:PRIMARY\ selection\ doesn\'t\ exist\ or\ +form\ \"STRING\"\ not\ defined)' Stack moved 896c4b4 => 896c4b8 t/text.t .. 395/415 # Looks like you failed 1 test of 415. t/text.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/415 subtests (less 37 skipped subtests: 377 okay) (1 TODO test unexpectedly succeeded) Test Summary Report ------------------- t/text.t (Wstat: 256 Tests: 415 Failed: 1) Failed test: 292 TODO passed: 121 Non-zero exit status: 1 Files=1, Tests=415, 3 wallclock secs ( 0.20 usr 0.01 sys + 1.11 cus +r 0.04 csys = 1.36 CPU) Result: FAIL Failed 1/1 test programs. 1/415 subtests failed.
Or, shorter:
root@weed# for a in {1..25} ; do /usr/bin/perl "-It" "-MTkTest" "-MExt +Utils::Command::MM" "-e" "check_display_harness; test_harness(0, 'bli +b/lib', 'blib/arch')" t/text.t ; done 2>/dev/null | grep Result: | s +ort | uniq -c 22 Result: FAIL 3 Result: PASS

In reply to Re^2: Tk: Cannot install from CPAN sometimes. by choroba
in thread Tk: Cannot install from CPAN sometimes. by choroba

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.