diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test
index dcdf3eeaeb67aaa15e40a6230c4e5c959da5e8fe..d213e031d18bf38a0c050be65fe6e46f7bfb250f 100644
--- a/mysql-test/t/mysql.test
+++ b/mysql-test/t/mysql.test
@@ -364,5 +364,6 @@ SELECT '< & >' AS `<`;
 EOF
 --exec $MYSQL --html test < $MYSQLTEST_VARDIR/tmp/bug27884.sql
 --echo
+remove_file $MYSQLTEST_VARDIR/tmp/bug27884.sql;
 
 --echo End of 5.0 tests