This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: 14654 introduced a bug
[perl5.git] / lib / File / Spec / t / rel2abs2rel.t
index 1e868f3..9d2ce2c 100644 (file)
@@ -27,7 +27,7 @@ is( `$perl -le "print 'ok'"`, "ok\n",   'rel2abs($^X)' );
 $perl = File::Spec->canonpath($perl);
 is( `$perl -le "print 'ok'"`, "ok\n",   'canonpath on abs executable' );
 
-$perl = safe_rel($perl);
+$perl = safe_rel(File::Spec->abs2rel($perl));
 is( `$perl -le "print 'ok'"`, "ok\n",   'abs2rel()' );
 
 $perl = File::Spec->canonpath($^X);