diff options
| author | Rasmus Lerdorf <rasmus@php.net> | 2011-08-29 06:19:40 +0000 |
|---|---|---|
| committer | Rasmus Lerdorf <rasmus@php.net> | 2011-08-29 06:19:40 +0000 |
| commit | bf3bb1efbe9e15f8cbe12180332fcde8022c1c28 (patch) | |
| tree | 8ea5115c42ef1f72e166473bab4fc3466e3821c4 /ext/sqlite3/tests | |
| parent | 1d5e50865861c3fe95b65c72920ed50ed2f79398 (diff) | |
| download | php-git-bf3bb1efbe9e15f8cbe12180332fcde8022c1c28.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.phpt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ext/sqlite3/tests/sqlite3_15_open_error.phpt b/ext/sqlite3/tests/sqlite3_15_open_error.phpt index 49168fd19b..ea1ee42992 100644 --- a/ext/sqlite3/tests/sqlite3_15_open_error.phpt +++ b/ext/sqlite3/tests/sqlite3_15_open_error.phpt @@ -1,10 +1,15 @@ --TEST-- SQLite3::open error test --SKIPIF-- -<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?> +<?php +require_once(__DIR__ . '/skipif.inc'); +if (posix_geteuid() == 0) { + die('SKIP Cannot run test as root.'); +} +?> --FILE-- <?php -$unreadable = dirname(__FILE__) . '/unreadable.db'; +$unreadable = __DIR__ . '/unreadable.db'; touch($unreadable); chmod($unreadable, 0200); try { |
