This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/op/magic.t: handle busybox ps
authorTony Cook <tony@develop-help.com>
Mon, 7 Aug 2023 06:05:13 +0000 (16:05 +1000)
committerTony Cook <tony@develop-help.com>
Wed, 23 Aug 2023 00:07:03 +0000 (10:07 +1000)
commit72d0a0a0eaacc085760906b83d9e509f553fbb80
tree8be78b1151d3b0066175355283c3e494a7d45393
parentabe403b1902de63cfb404c916d62bc28c05d4096
t/op/magic.t: handle busybox ps

There were two problems here:

- busybox ps doesn't support the ps -p option and produces an error
  and fails when it sees it.  This does no harm beyond noise.
- busybox ps ignores a PID parameter, always producing a complete
  list of processes, so the like()s around line 430 would include the
  entire ps list in their NAME values, producing a bunch of noise that
  TEST (but not harness) chokes on.
t/op/magic.t