Description:
The test steps does't match the description.
How to repeat:
The test "mysql-test/t/create.test", line #1790 - #1801:
~~~test
# Case 2: A database with tables in it and has an unrelated file in it's database
# directory. Dropping such database should throw ER_DB_DROP_RMDIR
# error.
CREATE DATABASE db_with_tables_and_an_unrelated_file_in_data_directory;
--write_file $MYSQLD_DATADIR/db_with_tables_and_an_unrelated_file_in_data_directory/intruder.txt
EOF
--replace_result $MYSQLD_DATADIR ./ \\ /
--error ER_DB_DROP_RMDIR
DROP DATABASE db_with_tables_and_an_unrelated_file_in_data_directory;
# Cleanup
--remove_file $MYSQLD_DATADIR/db_with_tables_and_an_unrelated_file_in_data_directory/intruder.txt
DROP DATABASE db_with_tables_and_an_unrelated_file_in_data_directory;
~~~
I guess that "create table xx" has missed.
Suggested fix:
After "EOF", add a step like:
~~~test
use db_with_tables_and_an_unrelated_file_in_data_directory
create table t1(b char(0));
~~~