mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix SKIPIF section for SQLite3 test
Test is borked if the posix_geteui() function is unavailable.
This commit is contained in:
parent
e8e4ddce77
commit
1f118aa24c
1 changed files with 3 additions and 0 deletions
|
@ -6,6 +6,9 @@ if(substr(PHP_OS, 0, 3) == 'WIN' ) {
|
|||
die('skip non windows test');
|
||||
}
|
||||
require_once(__DIR__ . '/skipif.inc');
|
||||
if (!function_exists('posix_geteui')) {
|
||||
die('SKIP posix_geteuid() not defined so cannot check if run as root');
|
||||
}
|
||||
if (posix_geteuid() == 0) {
|
||||
die('SKIP Cannot run test as root.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue