Skip to content

Commit e4d894e

Browse files
committed
Improve test portability
1 parent 56e2c0d commit e4d894e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ext/oci8/tests/calltimeout1.phpt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,10 @@ echo "Test 1\n";
4242
oci_set_call_timeout($c, 4000); // milliseconds
4343
$r = mysleep($c, 8); // seconds
4444

45-
echo "Test 2\n";
46-
oci_set_call_timeout($c, 0);
47-
$r = mysleep($c, 5);
48-
4945
?>
5046
===DONE===
5147
<?php exit(0); ?>
5248
--EXPECTF--
5349
Test 1
5450
Execute error was ORA-03136: %s
55-
Test 2
56-
Execute error was ORA-03114: %s
5751
===DONE===

ext/oci8/tests/db_op_2.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ echo "Test 2\n";
4646
oci_set_db_operation($c, "");
4747
dq($c, 'select /*+ MONITOR */ \'dboptest\' from dual');
4848

49-
dq($c, 'select sql_text, dbop_name from v$sql_monitor where sql_text like \'%dboptest2%\' order by dbop_exec_id desc');
49+
dq($c, 'select sql_text, dbop_name from v$sql_monitor where sql_text like \'%dboptest%\' order by dbop_exec_id desc');
5050

5151
?>
5252
===DONE===
@@ -72,7 +72,7 @@ array(1) {
7272
}
7373
array(2) {
7474
["SQL_TEXT"]=>
75-
string(121) "select /*+ MONITOR */ sql_text, dbop_name from v$sql_monitor where sql_text like '%dboptest2%' order by dbop_exec_id desc"
75+
string(42) "select /*+ MONITOR */ 'dboptest' from dual"
7676
["DBOP_NAME"]=>
7777
NULL
7878
}

0 commit comments

Comments
 (0)