]> granicus.if.org Git - php/commitdiff
Fix SKIPIF section for SQLite3 test
authorGeorge Peter Banyard <girgias@php.net>
Fri, 11 Sep 2020 16:12:59 +0000 (18:12 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Sat, 12 Sep 2020 20:36:50 +0000 (22:36 +0200)
Test is borked if the posix_geteui() function is unavailable.

ext/sqlite3/tests/sqlite3_15_open_error.phpt

index 0c3e9537db2daf26fd595aa6aa3dc0b1c55b929e..817affa78461ab50aac340a5c0fc1af0fce2bd16 100644 (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.');
 }