summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/innodb/include/have_innodb_punchhole.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/suite/innodb/include/have_innodb_punchhole.inc')
-rw-r--r--mysql-test/suite/innodb/include/have_innodb_punchhole.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb/include/have_innodb_punchhole.inc b/mysql-test/suite/innodb/include/have_innodb_punchhole.inc
new file mode 100644
index 00000000..74cd5c4e
--- /dev/null
+++ b/mysql-test/suite/innodb/include/have_innodb_punchhole.inc
@@ -0,0 +1,4 @@
+if (!`SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE LOWER(variable_name) = 'innodb_have_punch_hole' AND variable_value = 'ON'`)
+{
+ --skip Test requires InnoDB compiled with fallocate(FALLOC_PUNCH_HOLE| FALLOC_KEEP_SIZE)
+}