summaryrefslogtreecommitdiff
path: root/mysql-test/t/shm.test
diff options
context:
space:
mode:
authormsvensson@shellback.(none) <>2007-09-24 12:42:44 +0200
committermsvensson@shellback.(none) <>2007-09-24 12:42:44 +0200
commitd07a83eadf60906e8c9151b678ee9f69634e4ca4 (patch)
treebf2319e25769be0302090cfe48fb43e59583efb4 /mysql-test/t/shm.test
parentd8fd59a42300122a3e4a04ae5db16e63d4b26df4 (diff)
downloadmariadb-git-d07a83eadf60906e8c9151b678ee9f69634e4ca4.tar.gz
Add test for named pipes on windows
Improve test for shm on windows
Diffstat (limited to 'mysql-test/t/shm.test')
-rw-r--r--mysql-test/t/shm.test19
1 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/t/shm.test b/mysql-test/t/shm.test
new file mode 100644
index 00000000000..380607d8ebf
--- /dev/null
+++ b/mysql-test/t/shm.test
@@ -0,0 +1,19 @@
+# We currently only have shm support on windows, so in order
+# to optimize things we skip this test on all other platforms
+--source include/windows.inc
+
+# Only run this test if shared memory is avaliable
+let $shm= query_get_value("SHOW VARIABLES LIKE 'shared_memory'", Value, 1);
+if (`SELECT '$shm' != 'ON'`){
+ skip No shm support;
+}
+
+# Source select test case
+-- source include/common-tests.inc
+
+#
+# Bug #24924: shared-memory-base-name that is too long causes buffer overflow
+#
+--exec $MYSQLADMIN --no-defaults --user=root --host=127.0.0.1 --port=$MASTER_MYPORT --shared-memory-base-name=HeyMrBaseNameXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX ping
+
+--echo End of 5.0 tests.