summaryrefslogtreecommitdiff
path: root/mysql-test/suite/storage_engine
diff options
context:
space:
mode:
authorElena Stepanova <elenst@gmail.com>2013-11-13 22:28:26 +0400
committerElena Stepanova <elenst@gmail.com>2013-11-13 22:28:26 +0400
commit972b9f4ee27e85fb345b963bf0b35cb00e92d118 (patch)
treeababd93f1c656205d6f222cea8883912d569e6b7 /mysql-test/suite/storage_engine
parent55e9bfd4d9abd866729d488172ff50b422fe33ed (diff)
downloadmariadb-git-972b9f4ee27e85fb345b963bf0b35cb00e92d118.tar.gz
Workaround for the delayed InnoDB error messages in the log file
Diffstat (limited to 'mysql-test/suite/storage_engine')
-rw-r--r--mysql-test/suite/storage_engine/alter_tablespace.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/suite/storage_engine/alter_tablespace.test b/mysql-test/suite/storage_engine/alter_tablespace.test
index 64ff7e09158..dec16e5a3ac 100644
--- a/mysql-test/suite/storage_engine/alter_tablespace.test
+++ b/mysql-test/suite/storage_engine/alter_tablespace.test
@@ -83,6 +83,17 @@ EOF
--disable_query_log
eval CALL mtr.add_suppression('$storage_engine: Error:');
--enable_query_log
+
+ # The sleep below is a very bad style, but so far there seems to be
+ # no reliable way to prevent a failure on Windows, which is caused
+ # by the fact that the error message that we added the above suppression for,
+ # on Windows appears in the error log with a delay, so MTR
+ # thinks the error was raised on server shutdown, and the suppression
+ # does not work. Adding it globally is not an option because
+ # it must be caught in other tests which do not produce the failure
+ # intentionally
+
+ --sleep 1
}
DROP TABLE t1;