Skip to content

Commit 442741b

Browse files
authored
Merge pull request #56 from perlpunk/check-bin-true
t: Add another check for /bin/true
2 parents 024f821 + a71d0ca commit 442741b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

t/01_run.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ subtest 'execute exeption handling' => sub {
605605
};
606606

607607
subtest 'SIG_CHLD handler in spawned process' => sub {
608+
check_bin('/bin/true');
608609
my $simple_rwp = check_bin("$FindBin::Bin/data/simple_rwp.pl");
609610
my $sigchld_handler = check_bin("$FindBin::Bin/data/sigchld_handler.pl");
610611

t/data/simple_rwp.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
use Mojo::IOLoop::ReadWriteProcess 'process';
55

66
# Not all systems have /bin/true, this is /usr/bin/true on osx for instance
7-
my $p
8-
= process(execute => 'command -v true')->start()->wait_stop->read_all_stdout;
7+
my $p = process(execute => 'command -v true || which true')->start()
8+
->wait_stop->read_all_stdout;
99
exit process(execute => $p)->start()->wait_stop()->exit_status();

0 commit comments

Comments
 (0)