Skip to content

Commit

Permalink
re-introduced diag on fail
Browse files Browse the repository at this point in the history
  - reverting a0eccb4 and more
  - the story is that cpantester output was not verbose enough
  - example: http://www.cpantesters.org/cpan/report/a7d6a89a-94a5-11e4-972c-d4efdfbfc7aa
  • Loading branch information
andk committed Feb 2, 2015
1 parent bfe68fa commit 688660d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/30shell.t
Expand Up @@ -359,9 +359,10 @@ expected[$expected]\ngot[$got]\n\n";
} ],
[ timeout => sub {
my $got = $expo->clear_accum;
mydiag "timed out on i[$i]prog[$prog]
# diag for cpantesters
diag "timed out on i[$i]prog[$prog]
expected[$expected]\ngot[$got]\n\n";
mydiag sprintf(
diag sprintf(
"and perl says that [[[%s]]] %s match [[[%s]]]!",
$got,
$got=~/$expected/ ? "DOES" : "doesN'T",
Expand Down Expand Up @@ -420,7 +421,8 @@ if ($RUN_EXPECT) {
} else {
my $pos = pos $biggot;
my $got = substr($biggot,$pos,1024);
mydiag "FAILED at pos[$pos]\nprog[$prog]\nexpected[$expected]\ngot[$got]";
# diag for cpantesters
diag "FAILED at pos[$pos]\nprog[$prog]\nexpected[$expected]\ngot[$got]";
last;
$ok = 0;
}
Expand Down

0 comments on commit 688660d

Please sign in to comment.