Skip to content

Commit

Permalink
Skip bug70417.phpt if lsof output looks wrong
Browse files Browse the repository at this point in the history
On alpine lsof accepts -p but it doesn't actually do anything.
Add a crude check for whether lsof looks like Linux lsof.
  • Loading branch information
nikic committed Aug 10, 2020
1 parent 217d05b commit 657707a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/phar/tests/tar/bug70417.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ exec('lsof -p ' . getmypid(), $out, $status);
if ($status !== 0) {
die("skip lsof(8) not available");
}
if (!str_starts_with($out[0], 'COMMAND')) {
die("skip Might be a different lsof");
}
?>
--FILE--
<?php
Expand Down

0 comments on commit 657707a

Please sign in to comment.