summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2015-01-19 14:07:22 +0100
committerSergei Golubchik <sergii@pisem.net>2015-01-19 14:07:22 +0100
commitf78078a840bc99c0225b10523e20d311a3b8187d (patch)
treec810d26c4c91be81a3c85d90f5602b8f04cbdb1b /mysql-test/mysql-test-run.pl
parent2877c5ecc22ab0323ab86ce548a81909d7c865c8 (diff)
downloadmariadb-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-xmysql-test/mysql-test-run.pl11
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;
}
}