summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-29 06:19:40 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-29 06:19:40 +0000
commit78a46b87e393581a094568c1c1c1deff11604bf3 (patch)
tree48f283c528637622d6faae7941c3423b61f466be /ext/sqlite3/tests
parent9756f766b64a427828e38f8697cf4dc0edd8eebb (diff)
downloadphp-git-78a46b87e393581a094568c1c1c1deff11604bf3.tar.gz
Fix another broken test. root can read 0200 files.
Diffstat (limited to 'ext/sqlite3/tests')
-rw-r--r--ext/sqlite3/tests/sqlite3_15_open_error.phpt7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/sqlite3/tests/sqlite3_15_open_error.phpt b/ext/sqlite3/tests/sqlite3_15_open_error.phpt
index 49168fd19b..f296f82778 100644
--- a/ext/sqlite3/tests/sqlite3_15_open_error.phpt
+++ b/ext/sqlite3/tests/sqlite3_15_open_error.phpt
@@ -1,7 +1,12 @@
--TEST--
SQLite3::open error test
--SKIPIF--
-<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+<?php
+require_once(dirname(__FILE__) . '/skipif.inc');
+if (posix_geteuid() == 0) {
+ die('SKIP Cannot run test as root.');
+}
+?>
--FILE--
<?php
$unreadable = dirname(__FILE__) . '/unreadable.db';