1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Skip bug70417.phpt if lsof output looks wrong

On alpine lsof accepts -p but it doesn't actually do anything.
Add a crude check for whether lsof looks like Linux lsof.
This commit is contained in:
Nikita Popov
2020-08-10 14:36:06 +02:00
parent 217d05b18e
commit 657707a105
+3
View File
@@ -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