10 Commits

Author SHA1 Message Date
Bart Van Assche
8a3e9fdd7c git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11682 2011-04-03 17:42:19 +00:00
Nicholas Nethercote
675914e025 Try to fix error_counts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10768
2009-08-10 08:25:39 +00:00
Nicholas Nethercote
e97076e0f3 Merge r9299..r9303 (various leak-check test fixes) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9304
2009-03-02 05:11:06 +00:00
Tom Hughes
2713ff3519 Use longs to get the error counts as valgrind will expect to return a
machine word. Based on diagnosis by Robert Walsh <rjwalsh@durables.org>.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3792
2005-05-24 07:22:13 +00:00
Julian Seward
81307e483b 64-bit fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3683
2005-05-12 18:01:15 +00:00
Tom Hughes
f26e2b482f Add some alternate test results for glibc 2.2.5 systems.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2882
2004-10-31 11:31:16 +00:00
Nicholas Nethercote
aca466757f Changed behaviour of VALGRIND_COUNT_LEAKS slightly. Previously, the numbers it
returned (bytes leaked, dubious, etc) were incremented for every leak check
performed.  So if you called VALGRIND_DO_LEAK_CHECK twice in a row, the totals
would be updated twice by the same amount.  This was a bit silly.  So now
COUNT_LEAKS just returns the numbers of bytes leaked found from the previous
leak check.  I even updated the docs, and changed the regression test so old
version fail but the new version passes (by doing two DO_LEAK_CHECKS in a row).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1778
2003-07-22 22:03:58 +00:00
Julian Seward
3fd7b59db2 Dodge around more glibc variants.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1740
2003-07-08 00:13:51 +00:00
Nicholas Nethercote
1810431e9d wibble
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1583
2003-05-02 17:40:43 +00:00
Nicholas Nethercote
1b48c55fc5 Added two client requests: VALGRIND_COUNT_ERRORS and VALGRIND_COUNT_LEAKS.
The first returns the number of errors found so far, and is a core request.
The second returns the number of bytes found
reachable/dubious/leaked/suppressed by all leak checks so far, for Memcheck and
Addrcheck.

Both are useful for using Valgrind in regression test suites where multiple
tests are present in a single file -- one can run Valgrind with no output
(using --logfile-fd=-1) and use the requests after each test to determine if
any errors happened.

Had to rename and make public vg_n_errs_found --> VG_(n_errs_found) to do so.
Nb: leak errors are not counted as errors for the purposes of
VALGRIND_COUNT_ERRORS.  This was decided as the best thing to do after
discussion with Olly Betts, who original suggested these changes.

Pulled out common client request code shared between Memcheck and Addrcheck.

Added a regression test for this.

Added some documentation too.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1533
2003-04-21 13:24:40 +00:00