diff options
author | Sergei Golubchik <sergii@pisem.net> | 2015-01-19 14:07:22 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2015-01-19 14:07:22 +0100 |
commit | f78078a840bc99c0225b10523e20d311a3b8187d (patch) | |
tree | c810d26c4c91be81a3c85d90f5602b8f04cbdb1b /mysql-test/mysql-test-run.pl | |
parent | 2877c5ecc22ab0323ab86ce548a81909d7c865c8 (diff) | |
download | mariadb-git-f78078a840bc99c0225b10523e20d311a3b8187d.tar.gz |
mtr+valgrind: fix jemalloc check to work correctly for bundler and system jemalloc
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index a1cacb2099b..701dd30528b 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -6187,7 +6187,6 @@ sub debugger_arguments { } } - # # Modify the exe and args so that program is run in valgrind # @@ -6209,10 +6208,14 @@ sub valgrind_arguments { if -f "$glob_mysql_test_dir/valgrind.supp"; # Ensure the jemalloc works with mysqld - if ($mysqld_variables{'version-malloc-library'} ne "system" && - $$exe =~ /mysqld/) + if ($$exe =~ /mysqld/) { - mtr_add_arg($args, "--soname-synonyms=somalloc=NONE" ); + my %somalloc=( + 'system jemalloc' => 'libjemalloc*', + 'bundled jemalloc' => 'NONE' + ); + my ($syn) = $somalloc{$mysqld_variables{'version-malloc-library'}}; + mtr_add_arg($args, '--soname-synonyms=somalloc=%s', $syn) if $syn; } } |