diff --git a/mysql-test/extra/binlog_tests/insert_select-binlog.test b/mysql-test/extra/binlog_tests/insert_select-binlog.test
index d4041f86ab5dbfcae025220913f11cd029812fcc..a665dfda2b0b391dea0a0afba937ed1987084e25 100644
--- a/mysql-test/extra/binlog_tests/insert_select-binlog.test
+++ b/mysql-test/extra/binlog_tests/insert_select-binlog.test
@@ -1,6 +1,10 @@
 # Embedded server doesn't support binlog
 -- source include/not_embedded.inc
 
+--disable_warnings
+drop table if exists t1,t2;
+--enable_warnings
+
 # Check if a partly-completed INSERT SELECT in a MyISAM table goes into the
 # binlog
 
diff --git a/mysql-test/r/binlog_stm_insert_select.result b/mysql-test/r/binlog_stm_insert_select.result
index 35e328a769cd294faaa12795abade0062e28d08e..646a76b254d2ac7fdfeb18a1d573ad02c260a156 100644
--- a/mysql-test/r/binlog_stm_insert_select.result
+++ b/mysql-test/r/binlog_stm_insert_select.result
@@ -1,3 +1,4 @@
+drop table if exists t1,t2;
 create table t1(a int, unique(a));
 insert into t1 values(2);
 create table t2(a int);