From: Ulf Wendel Date: Wed, 27 May 2009 17:46:14 +0000 (+0000) Subject: Trying to get test failures down by fixing tests. X-Git-Tag: php-5.3.0RC3~123 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a39d92c14427e266933d69d9dd4d44f8a13e6c01;p=php Trying to get test failures down by fixing tests. --- diff --git a/ext/mysqli/tests/mysqli_poll_reference.phpt b/ext/mysqli/tests/mysqli_poll_reference.phpt index 846dff0c72..eb14e74044 100644 --- a/ext/mysqli/tests/mysqli_poll_reference.phpt +++ b/ext/mysqli/tests/mysqli_poll_reference.phpt @@ -142,11 +142,15 @@ mysqli_close($link); continue; } // WARNING: Due to the reference issue none of these should ever fire! - foreach ($reject as $links) { + foreach ($reject as $link) { printf("Connection %d was rejected...\n", mysqli_thread_id($link)); + if (mysqli_thread_id($link) != $thread_id) { + printf("[006] Connector %d should have been rejected. But also %d has been rejected.", + $thread_id, mysqli_thread_id($link)); + } $processed++; } - foreach ($errors as $links) { + foreach ($errors as $link) { printf("Connection %d has an error...\n", mysqli_thread_id($link)); $processed++; } @@ -194,6 +198,7 @@ mysqli_close($link); } } while ($processed < 2); + $ready = mysqli_poll($links, $errors, $reject, 0, 50000); mysqli_close($mysqli1); mysqli_close($mysqli2); @@ -202,19 +207,15 @@ mysqli_close($link); --EXPECTF-- bool(true) bool(true) -[002] The queries should have finished already bool(true) bool(true) -[003] The queries should have finished already bool(true) bool(true) bool(true) Connection %d should be rejected... -[005] The queries should have finished already +Connection %d was rejected... bool(true) bool(true) -Expected error: - -Warning: mysqli_poll(): No stream arrays were passed in %s on line %d +Warning: mysqli_poll(): All arrays passed are clear in %s on line %d done! diff --git a/ext/mysqli/tests/mysqli_stmt_attr_set.phpt b/ext/mysqli/tests/mysqli_stmt_attr_set.phpt index c1959afed6..c5d88bf277 100644 --- a/ext/mysqli/tests/mysqli_stmt_attr_set.phpt +++ b/ext/mysqli/tests/mysqli_stmt_attr_set.phpt @@ -1,5 +1,5 @@ --TEST-- -mysqli_stmt_attr_set() +mysqli_stmt_attr_set() - KNOWN ISSUE: mysqlnd does not check for invalid codes --SKIPIF-- --FILE-- --EXPECTF-- -Warning: mysqli_stmt_send_long_data(): Invalid parameter number in %s on line %d - Warning: mysqli_stmt_send_long_data(): Invalid parameter number in %s on line %d done! \ No newline at end of file