Commit Graph

6759 Commits

Author SHA1 Message Date
Bart Van Assche
eeff5a2b8e Updated expected output files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9242
2009-02-23 08:46:42 +00:00
Nicholas Nethercote
0bb4fe8d8a Another 'make check' warning fix.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9240
2009-02-23 07:28:54 +00:00
Nicholas Nethercote
b37d0e6850 More 'make check' warning fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9239
2009-02-23 07:26:15 +00:00
Nicholas Nethercote
94ed569cdc Fix some more 'make check' warnings, ones that appear on non-Linux
platforms.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9238
2009-02-23 07:17:08 +00:00
Nicholas Nethercote
2ae89cee5d Get rid of all "make check" compile warnings, except for the ones from
fxtract.c.

Also, gets rid of some of the warnings that -Wextra finds in Massif.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9237
2009-02-23 06:44:51 +00:00
Nicholas Nethercote
6ddf479d41 Merged part of r9234 (unit_libcbase improvements) from the DARWIN branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9235
2009-02-23 04:16:56 +00:00
Nicholas Nethercote
cfb40cbf6f Add missing __extension__ markings on a couple of clreqs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9230
2009-02-23 02:08:24 +00:00
Nicholas Nethercote
de920a14ce A few more test/build changes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9228
2009-02-23 01:33:40 +00:00
Nicholas Nethercote
7b65c22fbc Some more test/build cleanups missed in prior commits.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9227
2009-02-23 01:18:06 +00:00
Nicholas Nethercote
a3d4b19255 Cleanup this Makefile.am like other recent test Makefile.am files.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9226
2009-02-23 01:03:06 +00:00
Nicholas Nethercote
7fa1e4c013 This should have gone in with r9222.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9225
2009-02-23 00:36:02 +00:00
Julian Seward
5d49360cbb Use dashes rather than underscores in library names (njn).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9223
2009-02-22 23:40:31 +00:00
Nicholas Nethercote
a6448a3006 Test files were being passed multiple arch options (eg. "-m32 -m64") when
built.  This worked fine on the x86/Linux and AMD64/Linux but broke
ppc*/Linux.  This commit fixes the problem.  Thanks to Bart for spotting it.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9222
2009-02-22 23:38:10 +00:00
Nicholas Nethercote
87b5e49494 Merge a large chunk of r8949 (the part that moved fcntl and ioctl wrappers
out of syswrap-generic into syswrap-linux) from the DARWIN branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9219
2009-02-22 23:00:30 +00:00
Nicholas Nethercote
44b3b49c52 Fix an XML error spotted by Bart.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9218
2009-02-22 22:25:31 +00:00
Nicholas Nethercote
68b5487a3a Make fcntl and fcntl64 wrappers more consistent.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9217
2009-02-22 22:23:09 +00:00
Bart Van Assche
54c522f31e Updated documentation.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9216
2009-02-22 09:29:07 +00:00
Bart Van Assche
9078874b5c Added regression test for detection of unsynchronized pthread_barrier_wait() and pthread_barrier_delete() calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9215
2009-02-22 09:26:22 +00:00
Bart Van Assche
0a290f86cb - Bug fix: swapped order of VG_(OSetGen_Remove)() and
(*p->any.cleanup)(p) such that the "first observed at" information is
  now included in error messages.
- Performance optimization: started using VG_(OSetGen_ResetIterAt)().


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9214
2009-02-21 16:17:50 +00:00
Bart Van Assche
a93bb715dd Updated test plan.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9213
2009-02-21 16:13:50 +00:00
Bart Van Assche
844d75b8f3 VG_(OSetGen_ResetIterAt)() now also works for OSet's that do not have an
explicit comparison function.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9212
2009-02-21 16:12:20 +00:00
Bart Van Assche
aaef6d016e Changes:
- pthread_barrier_wait() intercept now passes the information to the DRD
  tool whether or not this function returned
  PTHREAD_BARRIER_SERIAL_THREAD. This information is now displayed when
  the command-line option --trace-barrier=yes has been specified.
- Changed the cleanup functions for client objects that are called just
  before a thread stops into callback functions.
- Added DRD_(clientobj_delete_thread)().
- Removed DRD_(clientobj_resetiter)(void) and DRD_(clientobj_next)().
- Added test for race conditions between pthread_barrier_wait() and
  pthread_barrier_destroy() calls. An error message is now printed if
  this condition has been detected.
- Bug fix: pthread_barrier_delete() calls on barriers being waited upon
  are now reported.
- Removed DRD_() wrapper from around the name of some static variables and
  functions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9211
2009-02-21 15:27:04 +00:00
Bart Van Assche
38e450b4c8 Updated svn:ignore property in multiple directories.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9209
2009-02-21 09:45:38 +00:00
Bart Van Assche
2d732560b7 Documentation updates.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9208
2009-02-21 09:39:09 +00:00
Bart Van Assche
511b7fc48d Finished renaming of 'oset_test' into 'unit_oset'.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9207
2009-02-20 19:53:50 +00:00
Bart Van Assche
840f16dda7 Moved drd/tests/pth_barrier.c, drd/tests/rwlock_race.c and
drd/tests/rwlock_test.c back to their original location.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9206
2009-02-20 19:00:18 +00:00
Nicholas Nethercote
f6b278a3fc Forgot to add this file in the last commit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9205
2009-02-20 06:37:52 +00:00
Nicholas Nethercote
13c8106f4f - Add 'unit_libcbase', the beginnings of a unit test module for m_libcbase.
- Rename 'oset_test' as 'unit_oset' to make its meaning more clear.
- Remove VG_(atoll36), VG_(strtoll8)() and VG_(strtoll36)();  they're not
  used and so untested, but easy to crib from similar functions if they need
  to be added again later.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9204
2009-02-20 06:10:44 +00:00
Bart Van Assche
04b3adc403 Updated cellbuzz configuration according to the changes made during the big upgrade of the Cellbuzz cluster in February 2009.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9203
2009-02-19 14:59:48 +00:00
Nicholas Nethercote
c8d150dbaa Various build system clean-ups and simplifications:
- Created Makefile.tool-tests.am, put standard AM_CFLAGS et al for tests in
  it.
- A number of tests are shared between Helgrind and DRD.  They used to be
  built in both directories.  Now they are only built in helgrind/tests/,
  and the DRD .vgtest files just point to the executable in helgrind/tests/.
  Most of these (about 30) had the source files in helgrind/tests/;  I moved
  the three that were in drd/tests/ into helgrind/tests/ for consistency.
- Fixed rwlock_test, which was failing to run due to a wrong name in the
  .vgtest file.
- Removed remnants of unused 'hello' test for Memcheck.
- Avoided redundant flag specification in various places, esp.
  memcheck/tests/Makefile.am.
- Removed unnecessary _AIX guards in some Linux-only tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9202
2009-02-19 09:52:05 +00:00
Nicholas Nethercote
4ddcff03b9 Merged r9101 (make Massif tests work if VG_MIN_MALLOC_SZB==16) from the
DARWIN branch, along with a few other minor things.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9197
2009-02-18 05:14:44 +00:00
Nicholas Nethercote
e2857bd483 For the fdleak_* tests, completely remove the stack traces showing where
file descriptors came into existence, because there's too much variation and
all the expected outputs are a pain.  This allows 16 fdleak_*.exp[234] files
to be removed.

Also remove an unnecessary newline in a tmp filename in fdleak_creat.c.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9194
2009-02-17 06:55:10 +00:00
Nicholas Nethercote
3ed4532cde In the core, include malloc_usable_size() as one of the functions that must
be replaced if malloc() et al are replaced by a tool.  This is because
different tools implement the function in different ways.

Add an appropriate malloc_usable_size() replacement to each of Memcheck,
Helgrind, DRD, Ptrcheck, Massif.

Update memcheck/tests/malloc_usable and add massif/tests/malloc_usable.

Merged from the DARWIN branch.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9193
2009-02-17 04:31:18 +00:00
Nicholas Nethercote
b327b8dd60 Remove unnecessary Memcheck test filters.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9188
2009-02-17 00:47:10 +00:00
Nicholas Nethercote
41aab1bfa5 Remove unused filter scripts from DRD.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9187
2009-02-17 00:32:58 +00:00
Nicholas Nethercote
3bfae3eec1 Merged r9185 (fix up getsockopt mess) from the DARWIN branch, minus the
Darwin-specific parts.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9186
2009-02-17 00:23:30 +00:00
Bart Van Assche
b71a8e5966 - Updated copyright statements.
- Improved consistency of source file headers.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9182
2009-02-16 19:43:56 +00:00
Bart Van Assche
21242b42b2 Just as for the regression tests of other Valgrind tools, do not explicitly state that these are licensed under the GPLv2 license but leave this implicit.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9181
2009-02-16 19:42:17 +00:00
Nicholas Nethercote
cf6cd2bb31 Stack traces for Memcheck's syscall param errors are terribly unreliable, so
I changed it to just filter the entire stack trace out for these errors (both
normal and XML cases).  The syscall name is still present in the error
string.  This allows a one or more alternative expected output files to be
removed for several tests, which is A Very Good Thing.

Also, I killed filter_test_paths because it was weird and clumsy and the
above change obviated most of its use and the remaining effects could be
achieved in other ways.

Also, I fixed up the scalar* tests a little and they now pass on my machine,
(and hopefully at least some other machines) for the first time ever!


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9178
2009-02-16 05:11:49 +00:00
Nicholas Nethercote
108768ee98 Merge r9175 (don't run inappropriate OS- and platform-specific tests) from
the DARWIN branch.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9176
2009-02-16 00:42:10 +00:00
Bart Van Assche
e8278d92ac drd_bitmap_test compiles again.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9173
2009-02-15 16:18:03 +00:00
Bart Van Assche
737b0449dc Wrapped DRD_() macro around yet even more function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9172
2009-02-15 15:59:20 +00:00
Bart Van Assche
c13f1a4f74 Wrapped DRD_() macro around even more function and variable names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9171
2009-02-15 14:46:17 +00:00
Bart Van Assche
cadc14611e Wrapped DRD_() macro around even more function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9170
2009-02-15 14:18:02 +00:00
Bart Van Assche
259b5ac2da Changed a global variable into a local variable.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9169
2009-02-15 13:16:52 +00:00
Bart Van Assche
8dd5b6ceb8 Wrapped DRD_() macro around thread-related function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9168
2009-02-15 13:11:14 +00:00
Bart Van Assche
ae7c8b899e Wrapped DRD_() macro around global and static variables in drd_thread.[ch].
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9167
2009-02-15 12:14:52 +00:00
Bart Van Assche
280e61760d Wrapped DRD_() macro around all client object function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9166
2009-02-15 11:34:57 +00:00
Bart Van Assche
1a06b087d8 Wrapped DRD_() macro around all barrier-related function names.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9165
2009-02-15 11:00:29 +00:00
Bart Van Assche
2cadc31ad0 Restored the previous method for passing arguments from the creator thread to the created thread, since the new approach made some regression tests fail. It is not yet clear to me why.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9164
2009-02-15 10:40:44 +00:00