From 0fefb5bbeb523bcf146dda4ba86872a527059918 Mon Sep 17 00:00:00 2001
From: antirez <antirez@gmail.com>
Date: Wed, 28 Mar 2012 10:55:17 +0200
Subject: [PATCH] Redis test: regexp to check if valgrind reported errors
 modified. Now we no longer look at the total count because this includes
 "possibly lost" bytes that are not interesting for Redis (tons of false
 positives because of how sds.c works).

---
 tests/support/server.tcl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/support/server.tcl b/tests/support/server.tcl
index 928e5c40..984270ad 100644
--- a/tests/support/server.tcl
+++ b/tests/support/server.tcl
@@ -17,7 +17,7 @@ proc check_valgrind_errors stderr {
     set buf [read $fd]
     close $fd
 
-    if {![regexp -- {ERROR SUMMARY: 0 errors} $buf] ||
+    if {[regexp -- { at 0x} $buf] ||
         (![regexp -- {definitely lost: 0 bytes} $buf] &&
          ![regexp -- {no leaks are possible} $buf])} {
         send_data_packet $::test_server_fd err "Valgrind error: $buf\n"