Commit Graph

251 Commits

Author SHA1 Message Date
Bart Van Assche
1bdac0e905 Updated expected output after r10874.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10875
2009-08-27 18:09:16 +00:00
Bart Van Assche
b3c9d22708 Added explicit constructor and destructor to class IncThread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10843
2009-08-18 20:29:26 +00:00
Bart Van Assche
80fdc5a9e9 - Made the ANNOTATE_RWLOCK_*() macros binary compatible with Helgrind.
- Added two additional regression tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10819
2009-08-15 10:50:35 +00:00
Bart Van Assche
3eb7d935d1 Made ANNOTATE_HAPPENS_BEFORE()/_AFTER() binary compatible with Helgrind.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10814
2009-08-14 13:25:38 +00:00
Bart Van Assche
abf69a6f30 Should compile again on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10809
2009-08-14 10:19:26 +00:00
Bart Van Assche
7599be6bac Removed the tc20_verifywrap and tc20_verifywrap2 regression tests because their behavior depends too much on implementation details of libc.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10808
2009-08-14 06:53:06 +00:00
Bart Van Assche
f8433bbd9d Reverted r10802.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10807
2009-08-14 06:45:16 +00:00
Bart Van Assche
cd962ae854 More expected output updates because of r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10803
2009-08-13 18:08:08 +00:00
Bart Van Assche
6d04c6fd8f Removed two regression tests because the output (number of errors) varied between runs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10802
2009-08-13 14:30:55 +00:00
Bart Van Assche
ea3ccead52 Made behavior of tsan_unittest again identical to the original behavior.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10801
2009-08-13 14:12:49 +00:00
Bart Van Assche
7e42fd6653 Added test program for the ANNOTATE_IGNORE_WRITES_*() annotation
macro's.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10800
2009-08-13 09:30:57 +00:00
Bart Van Assche
a7a1f97503 Third and last type-punned pointer fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10797
2009-08-12 17:40:32 +00:00
Bart Van Assche
44432a5c42 Fixed more gcc warnings about type-punned pointers breaking strict
aliasing / reworked changes applied through previous commit.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10796
2009-08-12 14:56:01 +00:00
Bart Van Assche
2236b87798 Fixed compiler warnings triggered by annotate_rwlock.c
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10795
2009-08-12 13:30:55 +00:00
Bart Van Assche
5e1086e053 Fixed gcc warnings about type-punned pointers breaking strict aliasing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10793
2009-08-12 12:52:23 +00:00
Bart Van Assche
fc111dbbc9 Added recently added regression test output files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10791
2009-08-12 09:45:18 +00:00
Bart Van Assche
ecfd26301f Added expected output for glibc 2.10 (Fedora 11). The test tc20_verifywrap2 has to be reviewed -- the results of this test depend on glibc internals, which is not good.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10790
2009-08-12 09:44:43 +00:00
Bart Van Assche
a5b5859976 More expected output updates because of r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10788
2009-08-12 08:21:13 +00:00
Bart Van Assche
684792c22d Modified annotate_ignore_rw test such that it now verifies that
ANNOTATE_IGNORE_READS_AND_WRITES_END() really works.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10787
2009-08-12 07:03:30 +00:00
Nicholas Nethercote
71694b3c20 Darwin .exp fixes following r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10785
2009-08-12 00:32:44 +00:00
Nicholas Nethercote
86be4a7cf3 Update .exp files for r10783.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10784
2009-08-12 00:14:44 +00:00
Bart Van Assche
6a68dfd48d Added regression test for ANNOTATE_IGNORE_READS_AND_WRITES_BEGIN() and
ANNOTATE_IGNORE_READS_AND_WRITES_END().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10779
2009-08-11 15:00:54 +00:00
Nicholas Nethercote
643cc753ae add a missing script
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10772
2009-08-11 00:18:31 +00:00
Julian Seward
8ffe2fdefa Tidy up of messaging:
* For all tools and the core, don't show statistics when -v is in
  effect.  Instead, try to restrict -v to mostly user-useful
  stuff.

* A new flag --stats=no|yes [no] produces statistics output instead.

* Fix longstanding problem in that Memcheck's leak checker ran after
  the core's error manager module shut down, thereby not showing use
  counts of leak suppressions.  This fixes #186790.

* As a consequence, the leak checker text output of Memcheck has
  changed a bit -- leak check is done before the final error
  summary is done (much more logical), and the output has been
  tidied up a bit.

* Helgrind, Drd and Ptrcheck now also print "For counts of
  detected and suppressed errors, rerun with: -v", which makes
  them consistent with Memcheck in this regard.  These are
  filtered out by the regtest filter scripts.

For all tools except Memcheck, the regtests are unchanged.  On
Memcheck regtests still fail due to rearrangements of the leak
checker output.  This will be fixed by a followup commit.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10746
2009-08-07 15:46:56 +00:00
Bart Van Assche
d05f228d57 Reverted to r10509.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10683
2009-07-31 19:00:05 +00:00
Bart Van Assche
f342398b6f Added an output variant for the pth_cancel_locked regression test.
Apparently when canceling a thread waiting inside pthread_cond_wait()
on Linux the specified mutex is left unlocked while on Darwin the
mutex specified in the pthread_cond_wait() call is reacquired before
the thread is terminated.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10682
2009-07-31 18:49:29 +00:00
Bart Van Assche
22baa8bb07 Implemented a more systematic approach for intercepting POSIX threads
functions: for each function name to intercept, intercept the function
name itself, the function name with @* appended (versioned symbols on
Linux) and the function name with $* appended (versioned symbols on
Darwin). Updated filter_stderr such that symbol versions are removed.
Updated the expected output files that contain names of intercepted
functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10679
2009-07-31 17:31:44 +00:00
Bart Van Assche
568200aa4a - Added more rwlock type checking.
- The rwlock_type_checking test should now no longer trigger a sporadic
  deadlock.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10639
2009-07-27 17:02:52 +00:00
Bart Van Assche
df0bcd77a8 Implemented type checking for reader-writer synchronization
objects: complain upon attempts to use a POSIX rwlock where a
user-defined rwlock is expected and vice versa.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10638
2009-07-27 16:03:51 +00:00
Bart Van Assche
c4a898250e Removed -q from the Valgrind options for the bar_bad and bar_trivial tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10636
2009-07-27 14:37:24 +00:00
Bart Van Assche
3770e93570 Made the error reporting behavior of DRD similar to that of other
Valgrind tools: if the same kind of error has been detected a second
time with an identical call stack, count it as an error but do not print
it a second time. The total number of detected errors remains unchanged
but the number of error contexts is now reported correctly.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10633
2009-07-27 14:04:46 +00:00
Bart Van Assche
fb1b7c8a7e Updated expected output of tc23_bogus_condwait for Darwin because the test program has been modified (r10623).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10631
2009-07-27 08:30:52 +00:00
Bart Van Assche
9bbe7e3f20 Re-enabled the regression tests tc17_sembar and tc23_bogus_condwait for DRD on Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10630
2009-07-27 08:29:29 +00:00
Bart Van Assche
ca91965fcb Should have been included in the previous commit (r10612).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10613
2009-07-26 15:39:57 +00:00
Bart Van Assche
b347a9de7c Added regression test for pth_once().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10612
2009-07-26 15:27:27 +00:00
Bart Van Assche
d41e7bcdaf Added regression test for %o (octal) format specifier.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10610
2009-07-26 09:16:56 +00:00
Bart Van Assche
0b293063de Made the semaphore name independent of the process ID.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10609
2009-07-26 09:16:29 +00:00
Bart Van Assche
945f25de9d Updated drd/tests/omp_printf:
- Added command-line options -i and -t to the omp_printf test program.
- Modified the OpenMP directive such that this test program no longer
  triggers a data race on the loop variable 'i'.
- Increased number of iterations and number of threads used during the
  test.
- Changed error filtering from filter_error_summary to filter_stderr.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10607
2009-07-26 09:04:42 +00:00
Bart Van Assche
ca485f98eb rwlock_test: added more internal error checking.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10592
2009-07-24 11:10:05 +00:00
Bart Van Assche
d3139db353 Made number of threads and number of iterations configurable. Decreased stack size allocated per thread.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10590
2009-07-24 09:34:37 +00:00
Bart Van Assche
ae6ca7c3d9 Made test output operating system independent by suppressing information about conflicting segments.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10586
2009-07-24 08:36:18 +00:00
Bart Van Assche
4536c55b81 Reverted r10511.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10579
2009-07-24 06:41:08 +00:00
Bart Van Assche
100f8eb9f7 Run the pth_inconsistent_cond_wait in quiet mode.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10577
2009-07-24 06:30:17 +00:00
Bart Van Assche
897fa244db Added command line option -q, which allows to suppress printing an error message if a Pthreads call fails.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10576
2009-07-24 06:29:57 +00:00
Bart Van Assche
f50613035d Labels printed with semaphore tracing enabled do now match the function names assigned by POSIX.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10570
2009-07-23 19:07:37 +00:00
Bart Van Assche
572a6b91d5 Ported circular_buffer test to Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10568
2009-07-23 18:22:00 +00:00
Bart Van Assche
498f9a41ff Modified filter_stderr to filter out even more platform differences.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10567
2009-07-23 18:10:55 +00:00
Bart Van Assche
ed4ca3f766 Ported the pth_inconsistent_cond_wait test program to Darwin.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10566
2009-07-23 18:02:52 +00:00
Bart Van Assche
f76d7ab6d9 Only run the test programs that call sem_init() on operating systems that have implemented this function.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10564
2009-07-23 17:51:58 +00:00
Bart Van Assche
dfe8dac619 Refactoring: moved semaphore initialization and cleanup code to two new functions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10563
2009-07-23 17:50:02 +00:00