File tree Expand file tree Collapse file tree 8 files changed +27
-11
lines changed Expand file tree Collapse file tree 8 files changed +27
-11
lines changed Original file line number Diff line number Diff line change 2
2
# be overcome. In normal cases one should fix the bug server/test case or in
3
3
# the worst case add a (temporary?) suppression in asan.supp or lsan.supp
4
4
5
- if (` select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value= "ASAN"` )
5
+ if (` select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value like "ASAN% "` )
6
6
{
7
7
-- skip Can't be run with ASan
8
8
}
Original file line number Diff line number Diff line change
1
+ # This file should only be used with tests that are too big or slow for MSAN.
2
+
3
+ if (` select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value like "MSAN%"` )
4
+ {
5
+ -- skip Can't be run WITH_MSAN
6
+ }
Original file line number Diff line number Diff line change 2
2
# be overcome. In normal cases one should fix the bug server/test case or in
3
3
# the worst case add a (temporary?) suppression in asan.supp or lsan.supp
4
4
5
- if (` select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value=" UBSAN"` )
5
+ if (` select count(*) from information_schema.system_variables where variable_name='have_sanitizer' and global_value LIKE "% UBSAN"` )
6
6
{
7
7
-- skip Can't be run with UBSAN
8
8
}
Original file line number Diff line number Diff line change @@ -48,7 +48,9 @@ if ($rpl_debug)
48
48
49
49
# Send shutdown to the connected server and give
50
50
# it 60 seconds (of mysqltest's default) to die before zapping it
51
- shutdown_server ;
51
+ let $rpl_shutdown_timeout = `select 60 *(1 +9 *count (*)) from information_schema . system_variables where variable_name = 'have_sanitizer' and global_value like "MSAN%" `;
52
+
53
+ shutdown_server $rpl_shutdown_timeout ;
52
54
53
55
--source include /wait_until_disconnected . inc
54
56
Original file line number Diff line number Diff line change 5
5
--source include/big_test.inc
6
6
# Test will take more than one hour with valgrind
7
7
--source include/not_valgrind.inc
8
+ --source include/not_msan.inc
8
9
--source include/have_innodb.inc
9
10
--source include/have_sequence.inc
10
11
Original file line number Diff line number Diff line change 10
10
--let $mysqlbinlog_output= tmp/mysqlbinlog_big_1.out
11
11
12
12
--source include/have_binlog_format_row.inc
13
-
14
13
--source include/have_log_bin.inc
15
14
16
15
# This is a big test.
17
16
--source include/big_test.inc
17
+ --source include/not_msan.inc
18
18
# Test needs more than 4G of memory
19
19
--source include/have_64bit.inc
20
20
Original file line number Diff line number Diff line change 6
6
--source include/big_test.inc
7
7
# This test is too slow for valgrind
8
8
--source include/not_valgrind.inc
9
+ --source include/not_msan.inc
9
10
10
11
drop table if exists t1,t2;
11
12
Original file line number Diff line number Diff line change @@ -5078,13 +5078,19 @@ static Sys_var_have Sys_have_symlink(
5078
5078
"--skip-symbolic-links option.",
5079
5079
READ_ONLY GLOBAL_VAR(have_symlink), NO_CMD_LINE);
5080
5080
5081
- #if defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
5082
-
5083
- #ifdef __SANITIZE_ADDRESS__
5084
- #define SANITIZER_MODE "ASAN"
5085
- #else
5086
- #define SANITIZER_MODE "UBSAN"
5087
- #endif /* __SANITIZE_ADDRESS__ */
5081
+ #if defined __SANITIZE_ADDRESS__ || defined WITH_UBSAN || __has_feature(memory_sanitizer)
5082
+
5083
+ # ifdef __SANITIZE_ADDRESS__
5084
+ # ifdef WITH_UBSAN
5085
+ # define SANITIZER_MODE "ASAN+UBSAN"
5086
+ # else
5087
+ # define SANITIZER_MODE "ASAN"
5088
+ # endif
5089
+ # elif defined WITH_UBSAN
5090
+ # define SANITIZER_MODE "UBSAN"
5091
+ # else
5092
+ # define SANITIZER_MODE "MSAN"
5093
+ # endif
5088
5094
5089
5095
static char *have_sanitizer;
5090
5096
static Sys_var_charptr Sys_have_santitizer(
You can’t perform that action at this time.
0 commit comments