diff options
-rw-r--r-- | t/lib/cygwin.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/lib/cygwin.t b/t/lib/cygwin.t index 497f38118e..e4fde170d9 100644 --- a/t/lib/cygwin.t +++ b/t/lib/cygwin.t @@ -44,12 +44,12 @@ chdir($pwd); is(Cygwin::win_to_posix_path($winpath, 1), "/", "win to absolute posix path"); my $mount = join '', `/usr/bin/mount`; -$mount =~ m|on /usr/bin type .+ \((\w+mode)[,\)]|m; -my $binmode = $1 eq 'binmode'; +$mount =~ m|on /usr/bin type .+ \((\w+)[,\)]|m; +my $binmode = $1 =~ /binmode|binary/; is(Cygwin::is_binmount("/"), $binmode ? 1 : '', "check / for binmount"); my $rootmnt = Cygwin::mount_flags("/"); -ok($binmode ? ($rootmnt =~ /,binmode/) : ($rootmnt =~ /,textmode/), "check / mount_flags"); +ok($binmode ? ($rootmnt =~ /,(binmode|binary)/) : ($rootmnt =~ /,textmode/), "check / mount_flags"); is(Cygwin::mount_flags("/cygdrive") =~ /,cygdrive/, 1, "check cygdrive mount_flags"); # Cygdrive mount prefix |