
Dropping a database with DROP DATABASE ... IF NOT EXISTS will cause warnings to be logged if it doesn't exist. The masking_user test was missing the part that disables these warnings.
Note that if modifications are made to any of the t/*-files and the r/*-files are regenerated, the output MUST BE CHECKED MANUALLY to ensure that the produced result indeed is the expected. Otherwise the mysqltest-based tests effectively tests nothing.