diff --git a/mysql-test/suite/innodb/r/innodb-lru-force-no-free-page.result b/mysql-test/suite/innodb/r/innodb-lru-force-no-free-page.result index b9fee24c7ff..09e53b59d9d 100644 --- a/mysql-test/suite/innodb/r/innodb-lru-force-no-free-page.result +++ b/mysql-test/suite/innodb/r/innodb-lru-force-no-free-page.result @@ -1,9 +1,10 @@ -call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool."); +call mtr.add_suppression("InnoDB: Difficult to find free blocks in the buffer pool"); +SET @saved_debug = @@SESSION.debug_dbug; SET SESSION debug_dbug="+d,ib_lru_force_no_free_page"; CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB; BEGIN; INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200)); COMMIT; -SET SESSION debug_dbug=""; +SET debug_dbug = @saved_debug; DROP TABLE t1; FOUND 1 /InnoDB: Difficult to find free blocks / in mysqld.1.err diff --git a/mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test b/mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test index e358446eca9..d4f08b5afe6 100644 --- a/mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test +++ b/mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test @@ -1,8 +1,10 @@ --source include/have_innodb.inc --source include/have_debug.inc +--source include/not_embedded.inc -call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool."); +call mtr.add_suppression("InnoDB: Difficult to find free blocks in the buffer pool"); +SET @saved_debug = @@SESSION.debug_dbug; SET SESSION debug_dbug="+d,ib_lru_force_no_free_page"; CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB; @@ -10,15 +12,13 @@ BEGIN; INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200)); COMMIT; -SET SESSION debug_dbug=""; +SET debug_dbug = @saved_debug; DROP TABLE t1; # # There should be only one message # -let SEARCH_RANGE= -50000; let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err; --let SEARCH_PATTERN=InnoDB: Difficult to find free blocks --source include/search_pattern_in_file.inc -