Skip to content

Commit

Permalink
Fix a test that always failed on --embedded
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jan 15, 2018
1 parent 578ffcc commit 4794e5b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -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 /InnoDB: Difficult to find free blocks / in mysqld.1.err
7 changes: 4 additions & 3 deletions mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
--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;
BEGIN;
INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200));
COMMIT;

SET SESSION debug_dbug="";
SET debug_dbug = @saved_debug;

DROP TABLE t1;

Expand All @@ -21,4 +23,3 @@ 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

0 comments on commit 4794e5b

Please sign in to comment.