]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix bad gdbserver_tests heap usage tests stderr output.
authorMark Wielaard <mark@klomp.org>
Mon, 19 Sep 2016 08:08:51 +0000 (08:08 +0000)
committerMark Wielaard <mark@klomp.org>
Mon, 19 Sep 2016 08:08:51 +0000 (08:08 +0000)
When doing inferior function calls from gdb (in mcmain_pic) there might
be extra heap usage from gdb that we aren't interested in tracking.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15960

gdbserver_tests/filter_memcheck_monitor
gdbserver_tests/mcclean_after_fork.stderr.exp
gdbserver_tests/mcmain_pic.stderr.exp
gdbserver_tests/mcmain_pic.stderr.exp-solaris
gdbserver_tests/mcsignopass.stderr.exp
gdbserver_tests/mcsigpass.stderr.exp
gdbserver_tests/mcwatchpoints.stderr.exp

index fe6c4052787d268f7669d9ab7b95c21368fbef04..431352b22262ad6e90a28ef8289987a5e9872810 100755 (executable)
@@ -22,8 +22,13 @@ $dir/filter_vgdb                                       |
 # Bypass a s390x kernel bug which makes faultstatus test3 fail. In our case, we are
 # not interested in checking the si_code, but rather the signal passing
 # in mcsig(no)pass
+#
+# When doing inferior function calls from gdb (in mcmain_pic) there might be
+# extra heap usage from gdb that we aren't interested in tracking.
+#
 sed -e '/Cannot access memory at address 0x......../d'                   \
     -e '/^[1-9][0-9]*  \.\.\/sysdeps\/powerpc\/powerpc32\/dl-start\.S: No such file or directory\./d' \
     -e '/^Missing separate debuginfo/d'                                  \
     -e '/^Try: zypper install -C/d'                                      \
-    -e 's/Test 3:   FAIL: expected si_code==2, not 128/Test 3:   PASS/'
+    -e 's/Test 3:   FAIL: expected si_code==2, not 128/Test 3:   PASS/'  \
+    -e '/^  total heap usage: /d'
index b9a2ee2f1c2aad505275ddd26833f7f3a2cff577..3bb7944e1f2d38135b4793eb2c09b4baab228e5d 100644 (file)
@@ -1,7 +1,6 @@
 (action at startup) vgdb me ... 
 HEAP SUMMARY:
     in use at exit: 0 bytes in 0 blocks
-  total heap usage: 0 allocs, 0 frees, 0 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
index 4e96ffce6ad53cf182a813d3d9cf194529fc8bd1..d82a7ee7cb691dcacd99b53e4ccbee23a3344d2d 100644 (file)
@@ -1,7 +1,6 @@
 (action at startup) vgdb me ... 
 HEAP SUMMARY:
     in use at exit: 16 bytes in 1 blocks
-  total heap usage: 1 allocs, 0 frees, 16 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
index cd16393196c2151c2b3939e319337083ec7bdedb..56cc9bcd6532891ae2a0b2c821d8a36d49deb087 100644 (file)
@@ -1,7 +1,6 @@
 (action at startup) vgdb me ... 
 HEAP SUMMARY:
     in use at exit: 131,080 bytes in 1 blocks
-  total heap usage: 1 allocs, 0 frees, 131,080 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
index 7b0a80e5ef7515a8ebc5a169c7b1a4af439a997d..7dbc9ee16468ff1dfc012c20188c07822d902caf 100644 (file)
@@ -9,7 +9,6 @@ Test 3:   PASS
 Test 4:   PASS
 HEAP SUMMARY:
     in use at exit: 0 bytes in 0 blocks
-  total heap usage: 0 allocs, 0 frees, 0 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 11 errors from 1 contexts (suppressed: 0 from 0)
index bd67a7ec90bddb80829f9102e9fb18363cb9ac9f..7a754fd0cf0afc5613d92123acc0e54274c1ba45 100644 (file)
@@ -9,7 +9,6 @@ Test 3:   PASS
 Test 4:   PASS
 HEAP SUMMARY:
     in use at exit: 0 bytes in 0 blocks
-  total heap usage: 0 allocs, 0 frees, 0 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
index afb594c0231e0e962eefaee6a2f89df4270d6b3c..319547c917de294b07c6b5f9d90d3a9e5c0e93e3 100644 (file)
@@ -16,7 +16,6 @@ value 0nde4ine8
 value of k50[1000] p
 HEAP SUMMARY:
     in use at exit: 0 bytes in 0 blocks
-  total heap usage: 1 allocs, 1 frees, 50,000 bytes allocated
 For a detailed leak analysis, rerun with: --leak-check=full
 For counts of detected and suppressed errors, rerun with: -v
 ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)