]> granicus.if.org Git - php/commitdiff
Suppress lsof warnings here to avoid FUSE-related
authorRasmus Lerdorf <rasmus@php.net>
Fri, 11 Nov 2011 02:05:54 +0000 (02:05 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Fri, 11 Nov 2011 02:05:54 +0000 (02:05 +0000)
warnings in certain environments. This doesn't
affect what is being tested.

ext/mysql/tests/bug55473.phpt

index df584bdef9ca3a3610397da886ef6306182e9a82..3fdd2cc5dfe7e393a174916308ace17b3fa5a6fa 100644 (file)
@@ -8,7 +8,7 @@ if (defined('PHP_WINDOWS_VERSION_MAJOR')) {
        die("skip Test doesn't work on Windows");
 }
 
-if (!($output = @exec("lsof -np " . getmypid())))
+if (!($output = @exec("lsof -nwp " . getmypid())))
        die("skip Test can't find command line tool lsof");
 ?>
 --INI--
@@ -56,9 +56,9 @@ mysql.allow_persistent=1
 
 
                if ($opened_files == -1) {
-                       $opened_files = trim(exec("lsof -np " . getmypid() . " | wc -l"));
+                       $opened_files = trim(exec("lsof -nwp " . getmypid() . " | wc -l"));
                        printf("[005] Setting openened files...\n");
-               } else if (($tmp = trim(exec("lsof -np " . getmypid() . " | wc -l"))) != $opened_files) {
+               } else if (($tmp = trim(exec("lsof -nwp " . getmypid() . " | wc -l"))) != $opened_files) {
                        printf("[006] [%d] different number of opened_files : expected %d, got %d", $i, $opened_files, $tmp);
                } else {
                        printf("[007] Opened files as expected\n");
@@ -76,4 +76,4 @@ mysql.allow_persistent=1
 [007] Opened files as expected
 [003] reconnect 3
 [007] Opened files as expected
-done!
\ No newline at end of file
+done!