We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f675d commit fbfe061Copy full SHA for fbfe061
S17-procasync/basic.t
@@ -4,18 +4,20 @@ use Test;
4
5
plan 9;
6
7
-my $pc = Proc::Async.new( 'echo', <Hello World> );
+my $pc = $*DISTRO.is-win
8
+ ?? Proc::Async.new( 'cmd', </c echo Hello World> )
9
+ !! Proc::Async.new( 'echo', <Hello World> );
10
isa_ok $pc, Proc::Async;
11
12
my $so = $pc.stdout;
13
cmp_ok $so, '~~', Supply;
14
my $se = $pc.stderr;
15
cmp_ok $se, '~~', Supply;
16
-my $stdout;
-my $stderr;
17
-$so.act: { $stdout ~= $_ };
18
-$se.act: { $stderr ~= $_ };
+my $stdout = "";
+my $stderr = "";
19
+$so.act: { $stdout ~= $_.subst("\r", "", :g) };
20
+$se.act: { $stderr ~= $_.subst("\r", "", :g) };
21
22
my $pm = $pc.start;
23
isa_ok $pm, Promise;
0 commit comments