Skip to content

Commit c68620d

Browse files
committed
Fix random test failures in testcase perfschema.mdl_func
The test case can get extra rows in its output from table performance_schema.table_handles, left there by an earlier test case (for example main.long_unique_delayed). So force a server restart at the beginning of the test. Signed-off-by: Kristian Nielsen <knielsen@knielsen-hq.org>
1 parent 3c1f324 commit c68620d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

mysql-test/suite/perfschema/r/mdl_func.result

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# restart
12
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
23
UPDATE performance_schema.setup_instruments SET enabled = 'YES'
34
WHERE name in ('wait/io/table/sql/handler',

mysql-test/suite/perfschema/t/mdl_func.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
--source include/not_embedded.inc
22
--source include/have_perfschema.inc
3+
# This test needs a fresh restart. The table performance_schema.table_handles
4+
# can otherwise contain extra rows left from previous testcases.
5+
# For example the test case main.long_unique_delayed, which uses
6+
# INSERT DELAYED, will leave extra rows in this table if run just before this
7+
# test, causing .result diff failure.
8+
--source include/restart_mysqld.inc
39

410
UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES';
511

0 commit comments

Comments
 (0)