Bug #47218 mysqltest ignores "error" command inside if inside loop

This was affected by same problem as append_file etc.
Added Q_ERROR to special handling, and added small test
This commit is contained in:
Bjorn Munch 2009-10-08 11:30:03 +02:00
commit 9edd40c87e
3 changed files with 5 additions and 0 deletions

View file

@ -7708,6 +7708,7 @@ int main(int argc, char **argv)
if (!ok_to_do)
{
if (command->type == Q_SOURCE ||
command->type == Q_ERROR ||
command->type == Q_WRITE_FILE ||
command->type == Q_APPEND_FILE ||
command->type == Q_PERL)