diff options
author | Craig A. Berry <craigberry@mac.com> | 2007-06-08 18:43:10 +0000 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2007-06-08 18:43:10 +0000 |
commit | fa06c9c1dceeb58bb75c4cd7ac36d5aaac6840a6 (patch) | |
tree | 5dfd80276b9f737914213d3cb00b55e15498660a | |
parent | 5ce486e0e787cc41a2d5023371386b518e92c1c2 (diff) | |
download | perl-fa06c9c1dceeb58bb75c4cd7ac36d5aaac6840a6.tar.gz |
A couple of File::Path tests require unix syntax on VMS.
p4raw-id: //depot/perl@31361
-rwxr-xr-x | lib/File/Path.t | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/File/Path.t b/lib/File/Path.t index 9d047ae216..d68351be5c 100755 --- a/lib/File/Path.t +++ b/lib/File/Path.t @@ -81,6 +81,8 @@ is(scalar(@created), 0, "skipped making existing directories (old style 1)") or diag("unexpectedly recreated @created"); $dir = catdir($tmp_base,'C'); +# mkpath returns unix syntax filespecs on VMS +$dir = VMS::Filespec::unixify($dir) if $^O eq 'VMS'; @created = mkpath($tmp_base, $dir); is(scalar(@created), 1, "created directory (new style 1)"); is($created[0], $dir, "created directory (new style 1) cross-check"); @@ -90,6 +92,8 @@ is(scalar(@created), 0, "skipped making existing directories (old style 2)") or diag("unexpectedly recreated @created"); $dir2 = catdir($tmp_base,'D'); +# mkpath returns unix syntax filespecs on VMS +$dir2 = VMS::Filespec::unixify($dir2) if $^O eq 'VMS'; @created = mkpath($tmp_base, $dir, $dir2); is(scalar(@created), 1, "created directory (new style 2)"); is($created[0], $dir2, "created directory (new style 2) cross-check"); |