From a5c34bc200eb38791fdba170968b72bf9139789e Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Fri, 4 Oct 2019 10:11:47 +0200 Subject: [PATCH] if the test uses example plugin, it has to check whether plugin exists --- mysql-test/include/install_plugin_if_exists.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mysql-test/include/install_plugin_if_exists.inc b/mysql-test/include/install_plugin_if_exists.inc index 93f968e8a39..c641f020deb 100644 --- a/mysql-test/include/install_plugin_if_exists.inc +++ b/mysql-test/include/install_plugin_if_exists.inc @@ -5,6 +5,10 @@ --echo # UNINSTALL IF EXISTS PLUGIN|SONAME name --echo # +if (!$HA_EXAMPLE_SO) { + skip Needs ha_example plugin; +} + select PLUGIN_NAME,PLUGIN_STATUS,PLUGIN_TYPE from information_schema.plugins where plugin_library like 'ha_example%'; INSTALL PLUGIN IF NOT EXISTS example SONAME 'ha_example'; select PLUGIN_NAME,PLUGIN_STATUS,PLUGIN_TYPE from information_schema.plugins where plugin_library like 'ha_example%';