summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqlcheck.test
diff options
context:
space:
mode:
authorunknown <tsmith@ramayana.hindu.god>2008-01-27 14:28:50 -0700
committerunknown <tsmith@ramayana.hindu.god>2008-01-27 14:28:50 -0700
commit32f59206764a448e1adf06e72ed69f7b4a907ce3 (patch)
tree4fe77d4d330fb22fa9ad288d1a2bad7167a22a2d /mysql-test/t/mysqlcheck.test
parent9dbd3877b5eb48b5a252dedbbbc61a722324e782 (diff)
downloadmariadb-git-32f59206764a448e1adf06e72ed69f7b4a907ce3.tar.gz
Fix test case for Bug #25347 so that it actually tests the code fix,
and so that it works correctly on Windows. mysql-test/r/mysqlcheck.result: Flush tables before monkeying around with underlying MyISAM data files mysql-test/t/mysqlcheck.test: Fix the test case for bug #25347 so that it actually does test the behavior. Also, this makes it work on Windows by ensuring that mysqld doesn't hold the underlying MyISAM files open while we try to corrupt them on disk. Flush tables before monkeying around with underlying MyISAM data files; --use-frm, so that mysqlcheck will succeed.
Diffstat (limited to 'mysql-test/t/mysqlcheck.test')
-rw-r--r--mysql-test/t/mysqlcheck.test3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/mysqlcheck.test b/mysql-test/t/mysqlcheck.test
index c2e194fd8f2..8d5e1a1c4c5 100644
--- a/mysql-test/t/mysqlcheck.test
+++ b/mysql-test/t/mysqlcheck.test
@@ -47,11 +47,12 @@ create database d_bug25347;
use d_bug25347;
create table t_bug25347 (a int);
create view v_bug25347 as select * from t_bug25347;
+flush tables;
--echo removing and creating
--remove_file $MYSQLTEST_VARDIR/master-data/d_bug25347/t_bug25347.MYI
--write_file $MYSQLTEST_VARDIR/master-data/d_bug25347/t_bug25347.MYI
EOF
---exec $MYSQL_CHECK --repair --databases d_bug25347
+--exec $MYSQL_CHECK --repair --databases --use-frm d_bug25347
drop view v_bug25347;
drop table t_bug25347;
drop database d_bug25347;