We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 024f821 commit a71d0caCopy full SHA for a71d0ca
2 files changed
t/01_run.t
@@ -605,6 +605,7 @@ subtest 'execute exeption handling' => sub {
605
};
606
607
subtest 'SIG_CHLD handler in spawned process' => sub {
608
+ check_bin('/bin/true');
609
my $simple_rwp = check_bin("$FindBin::Bin/data/simple_rwp.pl");
610
my $sigchld_handler = check_bin("$FindBin::Bin/data/sigchld_handler.pl");
611
t/data/simple_rwp.pl
@@ -4,6 +4,6 @@
4
use Mojo::IOLoop::ReadWriteProcess 'process';
5
6
# 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;
+my $p = process(execute => 'command -v true || which true')->start()
+ ->wait_stop->read_all_stdout;
9
exit process(execute => $p)->start()->wait_stop()->exit_status();
0 commit comments