mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-32216 add tests for mariadb-dump --parallel
- --parallel=N with or without --single-transaction - Error cases (too many connections, emulate error on one connection) - Windows specific test for named pipe connections
This commit is contained in:
15
mysql-test/main/mariadb-dump-debug.test
Normal file
15
mysql-test/main/mariadb-dump-debug.test
Normal file
@ -0,0 +1,15 @@
|
||||
--source include/have_debug.inc
|
||||
--source include/not_embedded.inc
|
||||
# need to dump "mysql" schema
|
||||
--source include/have_innodb.inc
|
||||
|
||||
# inject error on SELECT INTO OUTFILE
|
||||
set @save_debug_dbug=@@global.debug_dbug;
|
||||
set global debug_dbug='+d,select_export_kill';
|
||||
# This one succeeds
|
||||
--replace_result .\exe '' $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
|
||||
--error 2
|
||||
--exec $MYSQL_DUMP --tab=$MYSQLTEST_VARDIR/tmp/ --parallel=2 mysql global_priv 2>&1
|
||||
|
||||
set global debug_dbug=@save_debug_dbug;
|
||||
|
Reference in New Issue
Block a user