Skip to content

Commit

Permalink
Fix SKIPIF section for SQLite3 test
Browse files Browse the repository at this point in the history
Test is borked if the posix_geteui() function is unavailable.
  • Loading branch information
Girgias committed Sep 12, 2020
1 parent e8e4ddc commit 1f118aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/sqlite3/tests/sqlite3_15_open_error.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 1f118aa

Please sign in to comment.