Skip to content

Commit 8ca80ec

Browse files
committed
Revert "Fudge new test for release"
This reverts commit c749b6b.
1 parent c749b6b commit 8ca80ec

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

S29-os/system.t

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,22 +114,21 @@ ok((qqx{$cwd} ne BEGIN qqx{$cwd}), 'qqx{} is affected by chdir()');
114114
isnt run("dir", "t"), BEGIN { run("dir", "t") }, 'run() is affected by chdir()';
115115

116116
# https://irclog.perlgeek.de/perl6-dev/2017-06-13#i_14727506
117-
skip 'fudged', 1;
118-
# {
119-
# my $d = make-temp-dir;
120-
# $d.add('blah').spurt: 'Testing';
121-
#
122-
# temp %*ENV<PATH> = $*CWD.absolute ~ "/install/bin:%*ENV<PATH>";
123-
# my $res = do with run(
124-
# :out, :err, :cwd($d.absolute), :env{ :42FOOMEOW, |%*ENV },
125-
# $*EXECUTABLE.subst(/^"./"/, ""),
126-
# '-e', 「'blah'.IO.slurp.print; %*ENV<FOOMEOW>.print」
127-
# ) {
128-
# .out.slurp(:close) ~ .err.slurp(:close)
129-
# }
130-
#
131-
# is-deeply $res, 'Testing42', 'run sets $cwd and $env';
132-
# }
117+
{
118+
my $d = make-temp-dir;
119+
$d.add('blah').spurt: 'Testing';
120+
121+
temp %*ENV<PATH> = $*CWD.absolute ~ "/install/bin:%*ENV<PATH>";
122+
my $res = do with run(
123+
:out, :err, :cwd($d.absolute), :env{ :42FOOMEOW, |%*ENV },
124+
$*EXECUTABLE.subst(/^"./"/, ""),
125+
'-e', 'blah'.IO.slurp.print; %*ENV<FOOMEOW>.print
126+
) {
127+
.out.slurp(:close) ~ .err.slurp(:close)
128+
}
129+
130+
is-deeply $res, 'Testing42', 'run sets $cwd and $env';
131+
}
133132

134133
subtest '.out/.err proc pipes on failed command' => {
135134
plan 4;

0 commit comments

Comments
 (0)