--source include/have_innodb.inc

call mtr.add_suppression("InnoDB: (Operating system error|The error means|Cannot rename file)");

CREATE TABLE t1 (a INT) ENGINE=InnoDB;
--replace_regex /\'.*t1\' to/'**path-to-t1**' to/ /to \'.*non.*t1\'/to '**path-to-non-existing-db-t1**'/
--error ER_ERROR_ON_RENAME
RENAME TABLE t1 TO non_existing_db.t1;

# Cleanup
DROP TABLE t1;
