1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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.
This commit is contained in:
Satya Bodapati
2013-02-23 00:16:36 +05:30
parent 683b3a8108
commit 86ac111518

View File

@ -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