Skip to content

Commit 4971fb5

Browse files
authored
More robust test
1 parent 395898a commit 4971fb5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t/nqp/114-pod-panic.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ $fh.print($pod);
1414
close($fh);
1515

1616
# ensure we use the correct executable
17-
my $cmd := nqp::getcomp('nqp').backend.name eq 'jvm' ?? './nqp-j' !! './nqp-m';
17+
my $cmd := (nqp::stat('./nqp', nqp::const::STAT_EXISTS) == 1) ?? './nqp'
18+
!! nqp::getcomp('nqp').backend.name eq 'jvm' ?? './nqp-j' !! './nqp-m';
1819
my $cmdargs := $fname;
1920
my $args := nqp::list($cmd, $cmdargs);
2021

0 commit comments

Comments
 (0)