From: Julian Seward Date: Sun, 6 Jul 2003 23:24:18 +0000 (+0000) Subject: Run the test with -q so that it works both on glibc-2.2 and 2.3. The X-Git-Tag: svn/VALGRIND_2_0_0~53 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9b6314fd5694a042d991396c3d54872dfbeac706;p=thirdparty%2Fvalgrind.git Run the test with -q so that it works both on glibc-2.2 and 2.3. The problem if -q is not used is that the lines "malloc/free: 1 allocs, 0 frees, 8 bytes allocated." have different counts depending on the glibc version. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1732 --- diff --git a/memcheck/tests/badaddrvalue.stderr.exp b/memcheck/tests/badaddrvalue.stderr.exp index ad8f3ddf1d..702daa5b4e 100644 --- a/memcheck/tests/badaddrvalue.stderr.exp +++ b/memcheck/tests/badaddrvalue.stderr.exp @@ -1,4 +1,3 @@ - Invalid write of size 1 at 0x........: main (badaddrvalue.c:8) by 0x........: __libc_start_main (...libc...) @@ -18,9 +17,3 @@ Invalid read of size 1 by 0x........: main (badaddrvalue.c:7) by 0x........: __libc_start_main (...libc...) by 0x........: ... - -ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) -malloc/free: in use at exit: 8 bytes in 1 blocks. -malloc/free: 1 allocs, 0 frees, 8 bytes allocated. -For a detailed leak analysis, rerun with: --leak-check=yes -For counts of detected errors, rerun with: -v diff --git a/memcheck/tests/badaddrvalue.vgtest b/memcheck/tests/badaddrvalue.vgtest index 91187e810a..4d4b7f6806 100644 --- a/memcheck/tests/badaddrvalue.vgtest +++ b/memcheck/tests/badaddrvalue.vgtest @@ -1 +1,2 @@ prog: badaddrvalue +vgopts: -q