Fix SKIPIF section for SQLite3 test

Test is borked if the posix_geteui() function is unavailable.
This commit is contained in:
George Peter Banyard 2020-09-11 18:12:59 +02:00
parent e8e4ddce77
commit 1f118aa24c

View file

@ -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.');
}