ru_php/ext/posix/tests/posix_getgrgid_error.phpt

25 lines
540 B
PHP

--TEST--
Test posix_getgrgid() function : error conditions
--EXTENSIONS--
posix
--SKIPIF--
<?php
if (getenv('SKIP_ASAN')) die('xleak LSan crashes when firebird is loaded');
?>
--FILE--
<?php
echo "*** Testing posix_getgrgid() : error conditions ***\n";
echo "\n-- Testing posix_getgrgid() function with a negative group id --\n";
$gid = -999;
var_dump( posix_getgrgid($gid));
echo "Done";
?>
--EXPECT--
*** Testing posix_getgrgid() : error conditions ***
-- Testing posix_getgrgid() function with a negative group id --
bool(false)
Done