Skip to content

Commit

Permalink
further fix win32 test - since we refactored this out, it's actually …
Browse files Browse the repository at this point in the history
…creating 2 directories. Also, we need Cwd as well.
  • Loading branch information
rpcme committed Jul 25, 2015
1 parent f285dab commit ab4484c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions t/Path_win32.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ use Test::More;
use lib 't/';
use FilePathTest;
use File::Path;
use Cwd;
use File::Spec::Functions;

plan skip_all => 'not win32' unless $^O eq 'MSWin32';
plan tests => 6;
plan tests => 3;

my $tmp_base = catdir(
curdir(),
Expand All @@ -19,7 +20,7 @@ my $UNC_path = catdir(getcwd(), $tmp_base, 'uncdir');
#working TCPIP stack, \\?\ will always work
$UNC_path = '\\\\?\\'.$UNC_path;

is(mkpath($UNC_path), 1, 'mkpath on Win32 UNC path returns made 1 dir');
is(mkpath($UNC_path), 2, 'mkpath on Win32 UNC path returns made 2 dir - base and uncdir');

ok(-d $UNC_path, 'mkpath on Win32 UNC path made dir');

Expand Down

0 comments on commit ab4484c

Please sign in to comment.