summaryrefslogtreecommitdiff
path: root/mysql-test/mysql-test-run.pl
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-03-09 14:31:39 +0100
committerBjorn Munch <Bjorn.Munch@sun.com>2009-03-09 14:31:39 +0100
commit4cab4919153e29bba3c9118ce399ac0d9e3c7c33 (patch)
tree949ce4402adf46e77581175964c4657ad58bcd1b /mysql-test/mysql-test-run.pl
parent3cf777e1a21d55524f845906a3ba4905960fea47 (diff)
downloadmariadb-git-4cab4919153e29bba3c9118ce399ac0d9e3c7c33.tar.gz
Bug #43410 --skip-core-file has no effect if core file size is set
Would not prevent mysqld from core dumping Passes --nocore arg to safe_process, which then sets rlimit core to 0 for child
Diffstat (limited to 'mysql-test/mysql-test-run.pl')
-rwxr-xr-xmysql-test/mysql-test-run.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index cc87921c928..47498026e72 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -190,6 +190,8 @@ my $build_thread= 0;
my $opt_record;
my $opt_report_features;
+my $opt_skip_core;
+
our $opt_check_testcases= 1;
my $opt_mark_progress;
@@ -4008,6 +4010,7 @@ sub mysqld_arguments ($$$) {
mtr_add_arg($args, "%s", $arg);
}
}
+ $opt_skip_core = $found_skip_core;
if ( !$found_skip_core )
{
mtr_add_arg($args, "%s", "--core-file");
@@ -4105,6 +4108,7 @@ sub mysqld_start ($$) {
error => $output,
append => 1,
verbose => $opt_verbose,
+ nocore => $opt_skip_core,
host => undef,
shutdown => sub { mysqld_stop($mysqld) },
);