Skip to content

Commit 18fbe56

Browse files
committed
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
1 parent af781f1 commit 18fbe56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-test/lib/My/Debugger.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ sub do_args($$$$$) {
158158

159159
my $script = join "\n", @params;
160160
if ($v->{script}) {
161-
::mtr_tofile($vars{script}, subst($v->{script}, %vars)."\n".$script);
161+
::mtr_tonewfile($vars{script}, subst($v->{script}, %vars)."\n".$script);
162162
} elsif ($script) {
163163
die "$k is not using a script file, nowhere to write the script \n---\n$script\n---\n";
164164
}

0 commit comments

Comments
 (0)