diff options
author | Sergei Golubchik <serg@mariadb.org> | 2021-05-03 18:01:30 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2021-05-08 18:02:34 +0200 |
commit | 18fbe566bdf7420fbd9b4a1a8bede76e351d3b95 (patch) | |
tree | 5d162ddca564b93ccb133858ec75e6b2a6aca1f9 | |
parent | af781f1ac435f4fc9e395417af2ad15ea524a502 (diff) | |
download | mariadb-git-18fbe566bdf7420fbd9b4a1a8bede76e351d3b95.tar.gz |
mtr --gdb='commands' and restarts
if mysqld is restarted during a test, the debugger script
should be reused or overwritten, but not appended to the existing file
-rw-r--r-- | mysql-test/lib/My/Debugger.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/lib/My/Debugger.pm b/mysql-test/lib/My/Debugger.pm index b769f41dace..5e04c070e7f 100644 --- a/mysql-test/lib/My/Debugger.pm +++ b/mysql-test/lib/My/Debugger.pm @@ -158,7 +158,7 @@ sub do_args($$$$$) { my $script = join "\n", @params; if ($v->{script}) { - ::mtr_tofile($vars{script}, subst($v->{script}, %vars)."\n".$script); + ::mtr_tonewfile($vars{script}, subst($v->{script}, %vars)."\n".$script); } elsif ($script) { die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n"; } |