1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 11:42:17 +02:00

Improve test portability

This commit is contained in:
Christopher Jones
2018-12-10 10:16:15 +11:00
parent 56e2c0d7db
commit e4d894edb3
2 changed files with 2 additions and 8 deletions

View File

@@ -42,16 +42,10 @@ echo "Test 1\n";
oci_set_call_timeout($c, 4000); // milliseconds
$r = mysleep($c, 8); // seconds
echo "Test 2\n";
oci_set_call_timeout($c, 0);
$r = mysleep($c, 5);
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
Test 1
Execute error was ORA-03136: %s
Test 2
Execute error was ORA-03114: %s
===DONE===

View File

@@ -46,7 +46,7 @@ echo "Test 2\n";
oci_set_db_operation($c, "");
dq($c, 'select /*+ MONITOR */ \'dboptest\' from dual');
dq($c, 'select sql_text, dbop_name from v$sql_monitor where sql_text like \'%dboptest2%\' order by dbop_exec_id desc');
dq($c, 'select sql_text, dbop_name from v$sql_monitor where sql_text like \'%dboptest%\' order by dbop_exec_id desc');
?>
===DONE===
@@ -72,7 +72,7 @@ array(1) {
}
array(2) {
["SQL_TEXT"]=>
string(121) "select /*+ MONITOR */ sql_text, dbop_name from v$sql_monitor where sql_text like '%dboptest2%' order by dbop_exec_id desc"
string(42) "select /*+ MONITOR */ 'dboptest' from dual"
["DBOP_NAME"]=>
NULL
}