summaryrefslogtreecommitdiff
path: root/mysql-test/t/init_file.test
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2012-02-06 18:42:18 +0100
committerSergei Golubchik <sergii@pisem.net>2012-02-06 18:42:18 +0100
commit2bcb4184ef5598f6fcb4fd1aa53eca1a8cb6ecb2 (patch)
tree3f966e3aa774e50bb185a106288d117814f614f1 /mysql-test/t/init_file.test
parent6f0101186d9b7e01a38027c1d67c12b78c0d09aa (diff)
downloadmariadb-git-2bcb4184ef5598f6fcb4fd1aa53eca1a8cb6ecb2.tar.gz
remove few obscure, unused, or misused mtr features
Diffstat (limited to 'mysql-test/t/init_file.test')
-rw-r--r--mysql-test/t/init_file.test15
1 files changed, 8 insertions, 7 deletions
diff --git a/mysql-test/t/init_file.test b/mysql-test/t/init_file.test
index 573396f625d..65e54db43ea 100644
--- a/mysql-test/t/init_file.test
+++ b/mysql-test/t/init_file.test
@@ -13,8 +13,6 @@ INSERT INTO init_file.startup VALUES ( NOW() );
SELECT * INTO @X FROM init_file.startup limit 0,1;
SELECT * INTO @Y FROM init_file.startup limit 1,1;
SELECT YEAR(@X)-YEAR(@Y);
-# Enable this DROP DATABASE only after resolving bug #42507
-DROP DATABASE init_file;
--echo ok
--echo end of 4.1 tests
@@ -27,10 +25,13 @@ select * from t1;
# Expected:
# 30, 3, 11, 13
select * from t2;
-# Enable this DROP TABLE only after resolving bug #42507
-drop table t1, t2;
-# MTR will restart server anyway, but by forcing it we avoid being warned
-# about the apparent side effect
+#
+# we don't drop tables (t1, t2) and databases (init_file)
+# created by init-file script, because they existed when before-test
+# check was run, and if they won't exist after the test, after-test check
+# will complain.
+# But it's safe to keep them, because mysqld will be restarted after the
+# test (--init-file option) and datadir will be reinitialized.
+#
---source include/force_restart.inc