summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/tests')
-rw-r--r--ext/sqlite3/tests/bug53463.phpt2
-rw-r--r--ext/sqlite3/tests/sqlite3_15_open_error.phpt7
-rw-r--r--ext/sqlite3/tests/sqlite3_prepare_001.phpt2
3 files changed, 10 insertions, 1 deletions
diff --git a/ext/sqlite3/tests/bug53463.phpt b/ext/sqlite3/tests/bug53463.phpt
index c9216e660..dcfc13d5b 100644
--- a/ext/sqlite3/tests/bug53463.phpt
+++ b/ext/sqlite3/tests/bug53463.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #53463 (sqlite3 columnName() segfaults on bad column_number)
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php
diff --git a/ext/sqlite3/tests/sqlite3_15_open_error.phpt b/ext/sqlite3/tests/sqlite3_15_open_error.phpt
index 49168fd19..f296f8277 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';
diff --git a/ext/sqlite3/tests/sqlite3_prepare_001.phpt b/ext/sqlite3/tests/sqlite3_prepare_001.phpt
index 7cd4e4ccf..f9e5fadce 100644
--- a/ext/sqlite3/tests/sqlite3_prepare_001.phpt
+++ b/ext/sqlite3/tests/sqlite3_prepare_001.phpt
@@ -1,5 +1,7 @@
--TEST--
SQLite3 - memory leak on SQLite3Result and SQLite3Stmt
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
--FILE--
<?php