[PECL-CVS] [pecl-database-pdo_oci] main: Update test/oci_success_with_info.phpt to skip for normal tests

[email protected] (Sharad Chandran R)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-05T12:23:36+05:30

Commit: https://github.com/php/pecl-database-pdo_oci/commit/fe3cfdee69b754c426fb6c21fab62874536e6aac
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/fe3cfdee69b754c426fb6c21fab62874536e6aac.diff

Update test/oci_success_with_info.phpt to skip for normal tests

Changed paths:
  M  tests/oci_success_with_info.phpt


Diff:

diff --git a/tests/oci_success_with_info.phpt b/tests/oci_success_with_info.phpt
index f41ab3e..8c8d559 100644
--- a/tests/oci_success_with_info.phpt
+++ b/tests/oci_success_with_info.phpt
@@ -9,12 +9,13 @@ This test frequently fails in CI
 <?php
 if (getenv('SKIP_SLOW_TESTS')) die('skip slow tests excluded by request');
 require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
+$user = getenv('PDOTEST_USER');
+if (strcasecmp($user, "system") && strcasecmp($user, "sys")) die("skip needs to be run as a DBA user");
 PDOTest::skip();
 ?>
 --FILE--
 <?php
 
-require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
 function connectAsAdmin(): PDO {
     return PDOTest::test_factory(getenv('PDO_OCI_TEST_DIR').'/common.phpt');
 }
@@ -62,8 +63,6 @@ SQL
     );
 }
 
-require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
-
 $conn = connectAsAdmin();
 
 dropUser($conn);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.