summaryrefslogtreecommitdiff
path: root/mysql-test/include/have_blackhole.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/have_blackhole.inc')
-rw-r--r--mysql-test/include/have_blackhole.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/mysql-test/include/have_blackhole.inc b/mysql-test/include/have_blackhole.inc
index 6c4da01d61d..146f5afb0d5 100644
--- a/mysql-test/include/have_blackhole.inc
+++ b/mysql-test/include/have_blackhole.inc
@@ -1,4 +1,5 @@
-disable_query_log;
---require r/true.require
-select (support = 'YES' or support = 'DEFAULT') as `TRUE` from information_schema.engines where engine = 'blackhole';
-enable_query_log;
+if (!`SELECT count(*) FROM information_schema.engines WHERE
+ (support = 'YES' OR support = 'DEFAULT') AND
+ engine = 'blackhole'`){
+ skip Need blackhole engine;
+}