diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-04-12 20:40:58 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-04-12 21:20:17 +0200 |
commit | 479fb6c1e9c04b8e98d9ad890e621c7270b8dfe3 (patch) | |
tree | a19982eb9f30439d7e924f6f68391339b1fcf127 | |
parent | 1f6bd88c24e7e167920a73eba847419708deb7ae (diff) | |
download | mariadb-git-479fb6c1e9c04b8e98d9ad890e621c7270b8dfe3.tar.gz |
./mtr --client-gdb
followup for 339b9055791
don't use $opt_gdb for --client-gdb
-rwxr-xr-x | mysql-test/mysql-test-run.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 63f8f07a63a..1a00a7e694d 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -5645,7 +5645,9 @@ sub gdb_arguments { # Put $args into a single string $input = $input ? "< $input" : ""; - if ($type ne 'client' and $opt_valgrind_mysqld) { + if ($type eq 'client') { + mtr_tofile($gdb_init_file, "set args @$$args $input"); + } elsif ($opt_valgrind_mysqld) { my $v = $$exe; my $vargs = []; valgrind_arguments($vargs, \$v); |