summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-03-20 16:39:06 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2009-03-20 16:39:06 +0100
commitdd6356acca1cb6aaca995c6d3619af89681aef99 (patch)
treed245eca54bb1a84957e9e8d52bf7a504af5de929 /mysql-test/mysql-test-run.pl
parent776bb04abfed3f3fc3b1b63ffaab804f9603e139 (diff)
downloadmariadb-git-dd6356acca1cb6aaca995c6d3619af89681aef99.tar.gz
Bug #43074 MTR2 is not accessing core dumps when a path is too long
Executable path is truncated in core If we see truncated path, try to guess using strings and grep If that doesn't work either, use known mysqld path
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index c5a68662d5b..221cbedc89f 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -429,6 +429,7 @@ sub run_test_server ($$$) {
my $completed= [];
my %running;
my $result;
+ my $exe_mysqld= find_mysqld($basedir) || ""; # Used as hint to CoreDump
my $suite_timeout_proc= My::SafeProcess->timer(suite_timeout());
@@ -500,7 +501,7 @@ sub run_test_server ($$$) {
mtr_report(" - found '$core_name'",
"($num_saved_cores/$opt_max_save_core)");
- My::CoreDump->show($core_file);
+ My::CoreDump->show($core_file, $exe_mysqld);
if ($num_saved_cores >= $opt_max_save_core) {
mtr_report(" - deleting it, already saved",