MDEV-11718 Post-fix

A better way of finding mysqld
This commit is contained in:
Sachin Setiya 2017-05-12 11:09:27 +05:30
parent 6b97fe067d
commit 9495e018fb

View file

@ -6190,7 +6190,8 @@ sub valgrind_arguments {
mtr_add_arg($args, "--num-callers=16");
mtr_add_arg($args, "--suppressions=%s/valgrind.supp", $glob_mysql_test_dir)
if -f "$glob_mysql_test_dir/valgrind.supp";
my $temp= `ldd $ENV{MTR_BINDIR}/sql/mysqld | grep 'libjemalloc'`;
my $exe_mysqld= find_mysqld($bindir) || "";
my $temp= `ldd $exe_mysqld | grep 'libjemalloc'`;
if ($temp)
{
mtr_add_arg($args, "--soname-synonyms=somalloc=libjemalloc*");