Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit 5ea888e

Browse files
committed
Windows test stabilisation fix (disable threads only on certain platforms)
1 parent 76b512c commit 5ea888e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

mysql-test/suite/sysschema/r/pr_ps_setup_show_enabled.result

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ SET ENABLED = 'NO'
1010
UPDATE performance_schema.setup_consumers
1111
SET ENABLED = 'NO'
1212
WHERE NAME LIKE '%\_history\_long';
13-
UPDATE performance_schema.threads SET INSTRUMENTED = 'NO' WHERE NAME LIKE 'thread/innodb/srv\_%';
13+
UPDATE performance_schema.threads
14+
SET INSTRUMENTED = 'NO'
15+
WHERE NAME LIKE 'thread/innodb/srv\_%'
16+
OR NAME LIKE '%con\_%'
17+
OR NAME LIKE '%signal_handler%';
1418
CALL sys.ps_setup_show_enabled(FALSE, FALSE);
1519
performance_schema_enabled
1620
1
@@ -208,7 +212,6 @@ innodb/page_cleaner_thread BACKGROUND
208212
root@localhost FOREGROUND
209213
sql/compress_gtid_table FOREGROUND
210214
sql/main BACKGROUND
211-
sql/signal_handler BACKGROUND
212215
sql/thread_timer_notifier BACKGROUND
213216
CALL sys.ps_setup_show_enabled(TRUE, TRUE);
214217
performance_schema_enabled
@@ -247,7 +250,6 @@ innodb/page_cleaner_thread BACKGROUND
247250
root@localhost FOREGROUND
248251
sql/compress_gtid_table FOREGROUND
249252
sql/main BACKGROUND
250-
sql/signal_handler BACKGROUND
251253
sql/thread_timer_notifier BACKGROUND
252254
enabled_instruments timed
253255
idle YES

mysql-test/suite/sysschema/t/pr_ps_setup_show_enabled.test

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,12 @@ UPDATE performance_schema.setup_consumers
2020
SET ENABLED = 'NO'
2121
WHERE NAME LIKE '%\_history\_long';
2222

23-
# Disable some of the background threads:
24-
UPDATE performance_schema.threads SET INSTRUMENTED = 'NO' WHERE NAME LIKE 'thread/innodb/srv\_%';
23+
# Disable some of the background threads (including those that differ between unix like and Windows systems):
24+
UPDATE performance_schema.threads
25+
SET INSTRUMENTED = 'NO'
26+
WHERE NAME LIKE 'thread/innodb/srv\_%'
27+
OR NAME LIKE '%con\_%'
28+
OR NAME LIKE '%signal_handler%';
2529

2630
# Show limited info (no thread or instrument info)
2731
CALL sys.ps_setup_show_enabled(FALSE, FALSE);

0 commit comments

Comments
 (0)