summaryrefslogtreecommitdiff
path: root/mysql-test/include/have_debug_sync.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/have_debug_sync.inc')
-rw-r--r--mysql-test/include/have_debug_sync.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/include/have_debug_sync.inc b/mysql-test/include/have_debug_sync.inc
new file mode 100644
index 00000000000..7aa5baf3342
--- /dev/null
+++ b/mysql-test/include/have_debug_sync.inc
@@ -0,0 +1,5 @@
+--require r/have_debug_sync.require
+disable_query_log;
+let $value= query_get_value(SHOW VARIABLES LIKE 'debug_sync', Value, 1);
+eval SELECT ('$value' LIKE 'ON %') AS debug_sync;
+enable_query_log;