Skip to content

Commit 4794e5b

Browse files
committed
Fix a test that always failed on --embedded
1 parent 578ffcc commit 4794e5b

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool.");
1+
call mtr.add_suppression("InnoDB: Difficult to find free blocks in the buffer pool");
2+
SET @saved_debug = @@SESSION.debug_dbug;
23
SET SESSION debug_dbug="+d,ib_lru_force_no_free_page";
34
CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB;
45
BEGIN;
56
INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200));
67
COMMIT;
7-
SET SESSION debug_dbug="";
8+
SET debug_dbug = @saved_debug;
89
DROP TABLE t1;
910
FOUND /InnoDB: Difficult to find free blocks / in mysqld.1.err

mysql-test/suite/innodb/t/innodb-lru-force-no-free-page.test

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
--source include/have_innodb.inc
22
--source include/have_debug.inc
3+
--source include/not_embedded.inc
34

4-
call mtr.add_suppression("\\[Warning\\] InnoDB: Difficult to find free blocks in the buffer pool.");
5+
call mtr.add_suppression("InnoDB: Difficult to find free blocks in the buffer pool");
56

7+
SET @saved_debug = @@SESSION.debug_dbug;
68
SET SESSION debug_dbug="+d,ib_lru_force_no_free_page";
79

810
CREATE TABLE t1 (j LONGBLOB) ENGINE = InnoDB;
911
BEGIN;
1012
INSERT INTO t1 VALUES (repeat('abcdefghijklmnopqrstuvwxyz',200));
1113
COMMIT;
1214

13-
SET SESSION debug_dbug="";
15+
SET debug_dbug = @saved_debug;
1416

1517
DROP TABLE t1;
1618

@@ -21,4 +23,3 @@ let SEARCH_RANGE= -50000;
2123
let SEARCH_FILE= $MYSQLTEST_VARDIR/log/mysqld.1.err;
2224
--let SEARCH_PATTERN=InnoDB: Difficult to find free blocks
2325
--source include/search_pattern_in_file.inc
24-

0 commit comments

Comments
 (0)