From 86ac111518fa6b6c393566e583453d9d0d6a2f2c Mon Sep 17 00:00:00 2001 From: Satya Bodapati Date: Sat, 23 Feb 2013 00:16:36 +0530 Subject: [PATCH] Testcase fix for Bug#14147491 Sleep 1sec before remove_file to solve windows pb2 issues. We hope that after sleep, the access to the file will not be denied. --- mysql-test/suite/innodb/t/innodb_bug14147491.test | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mysql-test/suite/innodb/t/innodb_bug14147491.test b/mysql-test/suite/innodb/t/innodb_bug14147491.test index 7c653268c64..5224e1402e1 100644 --- a/mysql-test/suite/innodb/t/innodb_bug14147491.test +++ b/mysql-test/suite/innodb/t/innodb_bug14147491.test @@ -90,6 +90,11 @@ SET DEBUG = '+d,innodb_page_corruption_retries'; --error 2013 SELECT * FROM t1; +# The below mtr command --remove_file fails randomly on windows with +# error number 13 which is permission denied on nix systems. We sleep +# 1 second hoping that any process holding lock on t1.ibd is released. +SLEEP 1; + --echo # Restore the original t1.ibd --remove_file $MYSQLD_DATADIR/test/t1.ibd --move_file $MYSQLD_DATADIR/test/t1.ibd.backup $MYSQLD_DATADIR/test/t1.ibd