This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
27cdc72
)
porting/dual-life.t: Clarify test messages
author
Karl Williamson
<khw@cpan.org>
Wed, 25 May 2016 01:35:17 +0000
(19:35 -0600)
committer
Karl Williamson
<khw@cpan.org>
Thu, 26 May 2016 02:20:54 +0000
(20:20 -0600)
This changes the message output by the ok() sub to show precisely what
is being tested
t/porting/dual-life.t
patch
|
blob
|
blame
|
history
diff --git
a/t/porting/dual-life.t
b/t/porting/dual-life.t
index
d7d62d7
..
4ad2256
100644
(file)
--- a/
t/porting/dual-life.t
+++ b/
t/porting/dual-life.t
@@
-66,9
+66,11
@@
for my $f ( @programs ) {
next if $f =~ $not_installed;
my $bn = basename($f);
if(grep { /\A(?i:$bn)\z/ } keys %dist_dir_exe) {
- ok( -f "$dist_dir_exe{lc $bn}$ext", $f);
+ my $exe_file = "$dist_dir_exe{lc $bn}$ext";
+ ok( -f $exe_file, "Verify -f '$exe_file'");
} else {
- ok( -f catfile('..', 'utils', "$bn$ext"), $f );
+ my $utils_file = catfile('..', 'utils', "$bn$ext");
+ ok( -f $utils_file, "Verify -f '$utils_file'" );
}
}