summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorMagnus Svensson <msvensson@mysql.com>2009-01-27 18:56:24 +0100
committerMagnus Svensson <msvensson@mysql.com>2009-01-27 18:56:24 +0100
commit8a1a3f714ac1c38e834ab8182bf30f14a1dedb25 (patch)
tree488aff68dbb9fa37a8b522cbeda28c1f158eebce /mysql-test/mysql-test-run.pl
parent5f8740cb77b9b8c398f0d9a73e2390e4d18c7035 (diff)
downloadmariadb-git-8a1a3f714ac1c38e834ab8182bf30f14a1dedb25.tar.gz
WL#4189 mtr.pl v2
- Fix the regex for finding core files ie. anything that starts with "core" - Add collection of *.dmp files on windows.
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 4ba21bf383e..42c243cad8c 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -464,8 +464,9 @@ sub run_test_server ($$$) {
mtr_report(" - saving '$worker_savedir/' to '$savedir/'");
rename($worker_savedir, $savedir);
# Move any core files from e.g. mysqltest
- foreach my $coref (glob("core*"))
+ foreach my $coref (glob("core*"), glob("*.dmp"))
{
+ mtr_report(" - found '$coref', moving it to '$savedir'");
move($coref, $savedir);
}
if ($opt_max_save_core > 0) {
@@ -475,7 +476,9 @@ sub run_test_server ($$$) {
my $core_file= $File::Find::name;
my $core_name= basename($core_file);
- if ($core_name =~ "core*"){
+ if ($core_name =~ /^core/ or # Starting with core
+ (IS_WINDOWS and $core_name =~ /\.dmp$/)){
+ # Ending with .dmp
mtr_report(" - found '$core_name'",
"($num_saved_cores/$opt_max_save_core)");