Skip to content

Commit dc53089

Browse files
committed
mtr: extend LSAN_OPTIONS rather than overwrite
Its useful to add own LSAN_OPTIONS like report_objects=1 so lets make sure MTR doesn't overwrite this.
1 parent b02216b commit dc53089

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mysql-test/mariadb-test-run.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1644,7 +1644,8 @@ sub command_line_setup {
16441644
# $ENV{ASAN_OPTIONS}= "log_path=${opt_vardir}/log/asan:" . $ENV{ASAN_OPTIONS};
16451645

16461646
# Add leak suppressions
1647-
$ENV{LSAN_OPTIONS}= "suppressions=${glob_mysql_test_dir}/lsan.supp:print_suppressions=0"
1647+
$ENV{LSAN_OPTIONS}= "suppressions=${glob_mysql_test_dir}/lsan.supp:print_suppressions=0:"
1648+
. ($ENV{LSAN_OPTIONS} || '')
16481649
if -f "$glob_mysql_test_dir/lsan.supp" and not IS_WINDOWS;
16491650

16501651
mtr_verbose("ASAN_OPTIONS=$ENV{ASAN_OPTIONS}");

0 commit comments

Comments
 (0)