summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Stepanova <elenst@montyprogram.com>2018-11-18 17:38:48 +0200
committerElena Stepanova <elenst@montyprogram.com>2018-11-18 17:38:48 +0200
commit2b2992c51e3b2b1d818da68933c40ca904103acf (patch)
tree99abe46b4e759ea7f5e6aa744e6facbaadc3df22
parent9e88b282c7618cc9e458c4ae3465c8df83cd86d1 (diff)
downloadmariadb-git-bb-10.2-mdev17507.tar.gz
MDEV-17507 Make MTR tests work for builds without Aria for temporary tablesbb-10.2-mdev17507
Skip tests which expectedly fail when Aria is not used for temporary tables
-rw-r--r--mysql-test/include/have_aria_used_for_temp_tables.inc4
-rw-r--r--mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test1
-rw-r--r--mysql-test/suite/sys_vars/t/sysvars_aria.test1
-rw-r--r--mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test2
-rw-r--r--mysql-test/t/information_schema.test4
5 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/include/have_aria_used_for_temp_tables.inc b/mysql-test/include/have_aria_used_for_temp_tables.inc
new file mode 100644
index 00000000000..c921ba91d22
--- /dev/null
+++ b/mysql-test/include/have_aria_used_for_temp_tables.inc
@@ -0,0 +1,4 @@
+if (!`SELECT @@aria_used_for_temp_tables`)
+{
+ skip Need Aria to be used for temporary tables;
+}
diff --git a/mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test b/mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
index e962dcf178d..07f0c431138 100644
--- a/mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
+++ b/mysql-test/suite/sys_vars/t/aria_used_for_temp_tables_basic.test
@@ -1,5 +1,6 @@
# bool readonly
+--source include/have_aria_used_for_temp_tables.inc
--source include/have_maria.inc
#
# show the global and session values;
diff --git a/mysql-test/suite/sys_vars/t/sysvars_aria.test b/mysql-test/suite/sys_vars/t/sysvars_aria.test
index 5ff5c0d4b2b..67fb0baa4f1 100644
--- a/mysql-test/suite/sys_vars/t/sysvars_aria.test
+++ b/mysql-test/suite/sys_vars/t/sysvars_aria.test
@@ -1,4 +1,5 @@
--source include/have_aria.inc
+--source include/have_aria_used_for_temp_tables.inc
--source include/word_size.inc
--vertical_results
diff --git a/mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test b/mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
index bf93b4646d9..9c1e596d3e4 100644
--- a/mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
+++ b/mysql-test/suite/sys_vars/t/tmp_disk_table_size_func.test
@@ -1,5 +1,7 @@
###################### tmp_memory_table_size_func.test ########################
+--source include/have_aria_used_for_temp_tables.inc
+
--source include/load_sysvars.inc
--source include/have_sequence.inc
diff --git a/mysql-test/t/information_schema.test b/mysql-test/t/information_schema.test
index 417390dcafe..76a187e8c2e 100644
--- a/mysql-test/t/information_schema.test
+++ b/mysql-test/t/information_schema.test
@@ -8,6 +8,10 @@
# on the presence of the log tables (which are CSV-based).
--source include/have_csv.inc
+# Without aria_used_for_temp_tables some I_S tables will be MyISAM,
+# while the test expects them to be Aria
+-- source include/have_aria_used_for_temp_tables.inc
+
-- source include/have_innodb.inc
# Save the initial number of concurrent sessions