Skip to content

Commit 0cf1923

Browse files
committed
Fix borked test
1 parent 31fd991 commit 0cf1923

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/sqlite3/tests/sqlite3_15_open_error.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ if(substr(PHP_OS, 0, 3) == 'WIN' ) {
66
die('skip non windows test');
77
}
88
require_once(__DIR__ . '/skipif.inc');
9+
if (!function_exists('posix_geteui')) {
10+
die('SKIP posix_geteuid() not defined so cannot check if run as root');
11+
}
912
if (posix_geteuid() == 0) {
1013
die('SKIP Cannot run test as root.');
1114
}

0 commit comments

Comments
 (0)