summaryrefslogtreecommitdiff
path: root/mysql-test/suite.pm
diff options
context:
space:
mode:
authorDmitry Shulga <dmitry.shulga@mariadb.com>2021-07-15 16:27:31 +0700
committerDmitry Shulga <dmitry.shulga@mariadb.com>2021-07-15 16:27:31 +0700
commit429382c29f2dc6bcd97b623d3acfe493caf37eb4 (patch)
tree7882a7b2d64c1f9bfd0ca0a3f585fe2498190f85 /mysql-test/suite.pm
parentff0d3bb8ddbc34f4f2acf02110147181d1c10960 (diff)
downloadmariadb-git-429382c29f2dc6bcd97b623d3acfe493caf37eb4.tar.gz
MDEV-26142: Fix failures of the tests main.features and sys_vars.stored_program_cache_func when they are run in PS mode
These tests produced different results in case they were run with the option --ps-protocol. These tests produced different result sets since a value of Feature_subquery and handler_read_key status system variables are updated one time more for ps-protocol (the first time it is updated on Prepare phase and the second time on Execute phase of PS protocol) So different result sets are expected for both tests. To make tests successfully runnable both for case it is run with and without the option --ps-protocol the new protocol combination [ps, nm] and protocol specific result files have been added. Moreover, the perl script mysql-test/mariadb-test-run.pl has been updated to make the variable opt_ps_protocol visible outside perl file containing this variable.
Diffstat (limited to 'mysql-test/suite.pm')
-rw-r--r--mysql-test/suite.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/suite.pm b/mysql-test/suite.pm
index 5100b4137a2..4cc6b410fa1 100644
--- a/mysql-test/suite.pm
+++ b/mysql-test/suite.pm
@@ -25,6 +25,12 @@ sub skip_combinations {
$skip{'include/platform.combinations'} = [ 'aix', 'win' ];
}
+ if ( $::opt_ps_protocol ) {
+ $skip{'include/protocol.combinations'} = [ 'nm' ];
+ } else {
+ $skip{'include/protocol.combinations'} = [ 'ps' ];
+ }
+
$skip{'include/maybe_debug.combinations'} =
[ defined $::mysqld_variables{'debug-dbug'} ? 'release' : 'debug' ];