diff options
author | Satya Bodapati <satya.bodapati@oracle.com> | 2013-02-23 00:16:36 +0530 |
---|---|---|
committer | Satya Bodapati <satya.bodapati@oracle.com> | 2013-02-23 00:16:36 +0530 |
commit | 86ac111518fa6b6c393566e583453d9d0d6a2f2c (patch) | |
tree | 7bbc387c9986e5ced9db0ae02e21093b492001da /mysql-test | |
parent | 683b3a81089519c5207a844269b3b1b4b72cd4f0 (diff) | |
download | mariadb-git-86ac111518fa6b6c393566e583453d9d0d6a2f2c.tar.gz |
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.
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/suite/innodb/t/innodb_bug14147491.test | 5 |
1 files changed, 5 insertions, 0 deletions
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 |