summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-10-05 16:37:05 +0300
committerMichael Widenius <monty@askmonty.org>2011-10-05 16:37:05 +0300
commit1351bef4df851f7a867c0732d46a322165168b63 (patch)
tree4495c43187c4f75e9a93205b1e3d650d0703701c /mysql-test
parente71eb27aa2c83f9f7fd3323fe0bed9fede07be23 (diff)
downloadmariadb-git-1351bef4df851f7a867c0732d46a322165168b63.tar.gz
Fix for issue found in buildbot where mysqld.*.err files was missing
Added suppression message for valgrind failure found on OpenSuSE 11.1 mysql-test/mysql-test-run.pl: Fix for issue found in buildbot where mysqld.*.err files was missing Patch by Kristian Nielsen mysql-test/valgrind.supp: Added suppression message for valgrind failure found on OpenSuSE 11.1 sql/mysqld.cc: Added missing space to comment
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl27
-rw-r--r--mysql-test/valgrind.supp9
2 files changed, 9 insertions, 27 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 6545812cc25..e480fcfd5fc 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -2862,7 +2862,6 @@ sub mysql_server_start($) {
}
if (-d $datadir ) {
- preserve_error_log($mysqld);
mtr_verbose(" - removing '$datadir'");
rmtree($datadir);
}
@@ -2891,7 +2890,6 @@ sub mysql_server_start($) {
unless -d $datadir;
}
- restore_error_log($mysqld);
# Create the servers tmpdir
my $tmpdir= $mysqld->value('tmpdir');
@@ -4209,30 +4207,6 @@ sub run_testcase ($$) {
}
-# We want to preserve the error log between server restarts, as it may contain
-# valuable debugging information even if there is no test failure recorded.
-sub _preserve_error_log_names {
- my ($mysqld)= @_;
- my $error_log_file= $mysqld->if_exist('#log-error');
- return (undef, undef) unless $error_log_file;
- my $error_log_dir= dirname($error_log_file);
- my $save_name= $error_log_dir ."/../". $mysqld->name() .".error.log";
- return ($error_log_file, $save_name);
-}
-
-sub preserve_error_log {
- my ($mysqld)= @_;
- my ($error_log_file, $save_name)= _preserve_error_log_names($mysqld);
- rename($error_log_file, $save_name) if $save_name;
- # Ignore any errors, as it's just a best-effort to keep the log if possible.
-}
-
-sub restore_error_log {
- my ($mysqld)= @_;
- my ($error_log_file, $save_name)= _preserve_error_log_names($mysqld);
- rename($save_name, $error_log_file) if $save_name;
-}
-
# Keep track of last position in mysqld error log where we scanned for
# warnings, so we can attribute any warnings found to the correct test
# suite or server restart.
@@ -4747,7 +4721,6 @@ sub clean_datadir {
for (all_servers())
{
- preserve_error_log($_); # or at least, try to
my $dir= "$opt_vardir/".$_->{name};
mtr_verbose(" - removing '$dir'");
rmtree($dir);
diff --git a/mysql-test/valgrind.supp b/mysql-test/valgrind.supp
index a5680746280..cbb5d54c1a0 100644
--- a/mysql-test/valgrind.supp
+++ b/mysql-test/valgrind.supp
@@ -396,6 +396,15 @@
}
{
+ dlsym memory loss from udf_free on SuSE 11.1 x64 variant 2
+ Memcheck:Leak
+ fun:calloc
+ obj:/lib*/ld-*.so
+ fun:dlclose
+ fun:udf_free
+}
+
+{
dlclose memory loss from plugin variant 1
Memcheck:Leak
fun:calloc