From ac1aa0cd706001b3484922d89a383b55ff7fe5cb Mon Sep 17 00:00:00 2001 From: Magnus Svensson Date: Thu, 24 Jul 2008 22:21:19 +0200 Subject: [PATCH] Add all server arguments to mysqltest_embedded when running check_warnings --- mysql-test/mysql-test-run.pl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index c83de254270..be68fef2b5d 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -3019,6 +3019,23 @@ sub start_check_warnings ($$) { mtr_add_arg($args, "--skip-safemalloc"); mtr_add_arg($args, "--test-file=%s", "include/check-warnings.test"); + if ( $opt_embedded_server ) + { + + # Get the args needed for the embedded server + # and append them to args prefixed + # with --sever-arg= + + my $mysqld= $config->group('embedded') + or mtr_error("Could not get [embedded] section"); + + my $mysqld_args; + mtr_init_args(\$mysqld_args); + my $extra_opts= get_extra_opts($mysqld, $tinfo); + mysqld_arguments($mysqld_args, $mysqld, $extra_opts); + mtr_add_arg($args, "--server-arg=%s", $_) for @$mysqld_args; + } + my $errfile= "$opt_vardir/tmp/$name.err"; my $proc= My::SafeProcess->new (