Skip to content

Commit

Permalink
Temporarily remove .resolve for Windows in make-temp-*
Browse files Browse the repository at this point in the history
Currently Rakudo's IO::Path.resolve isn't Windows-friendly; should
might be fixed in a month or so.
  • Loading branch information
zoffixznet committed May 19, 2017
1 parent 926f20d commit b5b975b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/Test/Util.pm
Expand Up @@ -267,7 +267,11 @@ multi doesn't-warn (&code, Str $desc) is export {
}

sub make-rand-path (--> IO::Path:D) {
$*TMPDIR.resolve.child: (
my $p = $*TMPDIR;
# XXX TODO .resolve is broken on Windows in Rakudo; .resolve for all OSes
# when it is fixed
$p .= resolve unless $*DISTRO.is-win;
$p.resolve.child: (
'perl6_roast_',
$*PROGRAM.basename, '_line',
((try callframe(3).code.line)||''), '_',
Expand Down

0 comments on commit b5b975b

Please sign in to comment.