This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
porting/dual-life.t: Clarify test messages
authorKarl Williamson <khw@cpan.org>
Wed, 25 May 2016 01:35:17 +0000 (19:35 -0600)
committerKarl 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

index d7d62d7..4ad2256 100644 (file)
@@ -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'" );
   }
 }