List:Commits« Previous MessageNext Message »
From:Magnus Svensson Date:January 26 2009 3:39pm
Subject:bzr commit into mysql-5.1 branch (msvensson:2731) WL#4189
View as plain text  
#At file:///home/msvensson/mysql/5.1-rpl-merge/ based on revid:msvensson@stripped

 2731 Magnus Svensson	2009-01-26
      WL#4189 mtr.pl v2
       - Suppress intentional safemalloc dump warnings
       - add fflush(stdout) to make sure that the "End safemalloc memory dump." marker is flushed.
modified:
  mysql-test/include/mtr_warnings.sql
  sql/sql_test.cc

=== modified file 'mysql-test/include/mtr_warnings.sql'
--- a/mysql-test/include/mtr_warnings.sql	2009-01-26 14:20:33 +0000
+++ b/mysql-test/include/mtr_warnings.sql	2009-01-26 15:39:00 +0000
@@ -237,6 +237,17 @@ BEGIN
       WHERE el.suspicious=1 AND el.line REGEXP ts.pattern;
 
   --
+  -- Suppress intentional safemalloc dump warnings
+  -- i.e inside "Begin/End safemalloc memeory dump" block
+  --
+  SELECT @min_row:=row
+    FROM error_log WHERE line = "Begin safemalloc memory dump:";
+  SELECT @max_row:=row
+    FROM error_log WHERE line = "End safemalloc memory dump.";
+  UPDATE error_log SET suspicious=0
+    WHERE suspicious=1 AND row > @min_row AND row < @max_row;
+
+  --
   -- Get the number of marked lines and return result
   --
   SELECT COUNT(*) INTO @num_warnings FROM error_log

=== modified file 'sql/sql_test.cc'
--- a/sql/sql_test.cc	2008-05-09 07:43:02 +0000
+++ b/sql/sql_test.cc	2009-01-26 15:39:00 +0000
@@ -513,7 +513,7 @@ Next alarm time: %lu\n",
   fprintf(stdout,"\nBegin safemalloc memory dump:\n"); // tag needed for test suite
   TERMINATE(stdout, 1);				// Write malloc information
   fprintf(stdout,"\nEnd safemalloc memory dump.\n");  
-
+  fflush(stdout);
 #ifdef HAVE_MALLINFO
   struct mallinfo info= mallinfo();
   printf("\nMemory status:\n\

Thread
bzr commit into mysql-5.1 branch (msvensson:2731) WL#4189Magnus Svensson26 Jan