1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-11: Generic storage engine test suite

This commit is contained in:
Elena Stepanova
2012-07-16 06:17:56 +04:00
parent 403cac0fe7
commit 72a5542f0e
405 changed files with 36013 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
#
# READ LOCAL / WRITE CONCURRENT locks.
# This test is separate from the main lock.test
# because the feature is likely to be unsupported.
#
--source have_engine.inc
--source include/count_sessions.inc
SET lock_wait_timeout = 1;
--let $create_definition = a $int_col
--source create_table.inc
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
connect (con1,localhost,root,,);
SET lock_wait_timeout = 1;
# If this statement fails with ER_LOCK_WAIT_TIMEOUT,
# most likely the engine does not support LOCK .. WRITE CONCURRENT
LOCK TABLES t1 READ LOCAL;
if ($mysql_errname)
{
--let $functionality = LOCK .. WRITE CONCURRENT
--source unexpected_result.inc
}
UNLOCK TABLES;
connection default;
UNLOCK TABLES;
connection con1;
LOCK TABLES t1 READ LOCAL;
connection default;
LOCK TABLES t1 WRITE CONCURRENT, t1 AS t2 READ;
UNLOCK TABLES;
connection con1;
UNLOCK TABLES;
disconnect con1;
connection default;
DROP TABLE t1;
--source include/wait_until_count_sessions.inc
--source cleanup_engine.inc