Skip to content

Commit cc0c04b

Browse files
committed
convert from run to Proc::Async
1 parent bd88d70 commit cc0c04b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

xt/space-after-comma.t

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ if @*ARGS {
1616
for qx<git ls-files>.lines -> $file {
1717
next unless $file ~~ / '.' ('pod6') $/;
1818
next if $file ~~ / 'contributors.pod6' $/; # names are hard.
19-
next if $file ~~ / 'doc/Type/IO/Spec/Unix.pod6' $/; # Issue #1414
20-
next if $file ~~ / 'doc/Type/List.pod6' $/; # Issue #1414
2119
push @files, $file;
2220
}
2321
}
@@ -27,15 +25,17 @@ plan +@files;
2725
for @files -> $file {
2826
my $ok = True;
2927

30-
my $out;
28+
my $output = "";
29+
3130
if $file ~~ / '.pod6' $/ {
32-
my $pod2text = run($*EXECUTABLE-NAME, '--doc', $file, :out);
33-
$out = $pod2text.out;
31+
my $a = Proc::Async.new($*EXECUTABLE-NAME, '--doc', $file);
32+
$a.stdout.tap(-> $buf { $output = $output ~ $buf });
33+
await $a.start;
3434
} else {
35-
$out = $file.IO;
35+
$output = $file.IO.slurp;
3636
}
3737

38-
for $out.lines -> $line-orig {
38+
for $output.lines -> $line-orig {
3939
next if $line-orig ~~ / ^ ' '/;
4040
my $line = $line-orig;
4141

0 commit comments

Comments
 (0)