com php-src: Skip bug70417.phpt if lsof output looks wrong: ext/phar/tests/tar/bug70417.phpt
| From: | Nikita Popov | Date: | Mon, 10 Aug 2020 13:59:08 +0000 |
| Subject: | com php-src: Skip bug70417.phpt if lsof output looks wrong: ext/phar/tests/tar/bug70417.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112638@lists.php.net to get a copy of this message | ||
Commit: 657707a105832f2cbd4de4cbdaa3fc5f48a06d97
Author: Nikita Popov <nikita.ppv@gmail.com> Mon, 10 Aug 2020 14:36:06 +0200
Parents: 217d05b18e47400a40ebf4a627a08cf5a164f230
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=657707a105832f2cbd4de4cbdaa3fc5f48a06d97
Log:
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.
Bugs:
https://bugs.php.net/70417
Changed paths:
M ext/phar/tests/tar/bug70417.phpt
Diff:
diff --git a/ext/phar/tests/tar/bug70417.phpt b/ext/phar/tests/tar/bug70417.phpt
index f288efc8f57..021342c2340 100644
--- a/ext/phar/tests/tar/bug70417.phpt
+++ b/ext/phar/tests/tar/bug70417.phpt
@@ -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