summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump.test
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2012-02-09 13:10:47 +0100
committerunknown <knielsen@knielsen-hq.org>2012-02-09 13:10:47 +0100
commit6e9b06d90bd8a833d7daf3dbc9927a36ba2137e5 (patch)
tree19e4c46333fcf2ffd603870b49fb5af43e4b8f1d /mysql-test/t/mysqldump.test
parenta03d8465769974e0254e4e4acb8aa59617453f9f (diff)
downloadmariadb-git-6e9b06d90bd8a833d7daf3dbc9927a36ba2137e5.tar.gz
Fix a number of problems in the test suite (no code bugs):
- mysql-test-run.pl --valgrind complains when all tests succeed. - perfschema.all_instances fail on non-linux, where ENABLE_TEMP_POOL is not set and therefore BITMAP mutex is not used. - MDEV-132: main.mysqldump fails because it depends on exact size of stdio buffers. - MDEV-99: rpl.rpl_cant_read_event_incident fails due to a race where the slave manages to connect while the test case is in the middle of setting up the master, causing the slave to replicate extra/wrong events. - MDEV-133: rpl.rpl_rotate_purge_deadlock fails because it issues a DEBUG_SYNC SIGNAL immediately followed by RESET; this means that sometimes the intended receipient has no time to see the signal before it is cleared by the RESET, causing wait to timeout.
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r--mysql-test/t/mysqldump.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test
index 302d79b6b13..424dd35a819 100644
--- a/mysql-test/t/mysqldump.test
+++ b/mysql-test/t/mysqldump.test
@@ -2249,8 +2249,12 @@ INSERT INTO b12809202_db.t2 VALUES (1), (2), (3);
--echo # commit starting 5.5.
--echo
--echo #### Dump starts here ####
+# We only need to check the --verbose output to verify that "start transaction"
+# happens after "logs flushed". We redirect normal output, as otherwise the
+# mixing of normal (stdout) and --verbose (stderr) output will happen in random
+# order depending on stdio internal buffer size.
--replace_regex /-- Server version.*// /-- MySQL dump .*// /-- Dump completed on .*/-- Dump completed/
---exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db 2>&1
+--exec $MYSQL_DUMP --verbose --single-transaction --flush-log b12809202_db 2>&1 > $MYSQLTEST_VARDIR/tmp/bug61854.sql
--echo
--echo #### Dump ends here ####