505 Commits

Author SHA1 Message Date
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
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
Nicholas Nethercote
6031d626c1 Moved 3 Linux-specific tests into linux/ directories.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9144
2009-02-13 06:23:46 +00:00
Nicholas Nethercote
f3240d6950 Filter out everything after "(below main)" in a line. This will help with
Darwin, for which such entries can occur within the executable, rather than
within libc.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9142
2009-02-12 00:51:50 +00:00
Nicholas Nethercote
f0f8b48fcf Merge the non-Darwin parts of r9140 (install vgpreload .dSYMs), just to keep
the trunk and DARWIN branch in sync.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9141
2009-02-12 00:30:02 +00:00
Nicholas Nethercote
a8c9970a34 Cleaned up the mess that was the treatment of "below main" functions such as
'__libc_start_main', in Massif, m_debuginfo and m_stacktrace.  As part of
this, --show-below-main is now visible to tools, and Massif pays attention
to it.

Improved the description of --show-below-main=yes in the manual.

Replaced some instances of "__libc_start_main" in the test *.exp files with
"(below main)", which is what will actually be seen.  Also updated
scalar.stderr.exp*, which should make it get closer to actually passing.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9131
2009-02-10 06:48:00 +00:00
Nicholas Nethercote
dbcc3e99d6 Move memcheck/tests/brk to the linux/ subdir, as it's Linux-specific (merged
from the DARWIN branch).  Also filter the output more so the .stderr.exp2
isn't needed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9038
2009-01-23 00:57:31 +00:00
Nicholas Nethercote
4372b47de8 Merge some minor regtest updates from the DARWIN branch:
- avoid using <malloc.h> where it's not necessary, because on DARWIN it's
  called <malloc/malloc.h>
- filter the output of brk2 more, which allows the .stderr.exp2 file to be
  removed.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9037
2009-01-23 00:02:07 +00:00
Nicholas Nethercote
ed322feb84 Rename all the arch/OS/platform-related variables in configure.in to make it
clearer what they mean:
- They all have VGCONF_ prefixes now, to indicate they come out of
  configure.in (and are clearly distinguished from the VGA_/VGO_/VGP_
  #defines passed in to C files).
- The ones that refer to the primary *or* secondary platform have _INCLUDES_
  in them.
- The ones that are in all-caps have a _CAPS suffix.

So, for example, what was VGP_X86_LINUX is now
VGCONF_PLATFORMS_INCLUDE_X86_LINUX, which is more verbose but also a lot
clearer.  The names of the #defines used in the C files (VGA_x86, VGO_linux,
etc) are unchanged.

cputest.c: changed to reflect the Valgrind installation's capabilities,
rather than the machine's capabilities.  In particular, if
--enable-only32bit is used on a 64-bit machine, then this program will claim
to only support 32-bits.  Also use the VGA/VGO/VGP macros which are clearer
than the __i386__ ones.  (This is partially merged from the DARWIN branch.)

configure.in: clean up the comments, distinguish different sections more
clearly, and generally make it more readable.

valgrind.pc.in: try to make this more accurate.  I doubt anyone's using it.
It doesn't appear to be set up to handle dual-architecture builds.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9031
2009-01-22 21:56:32 +00:00
Julian Seward
d5b38a2b94 Don't hardwire @FLAG_M32@ in here, since this directory isn't arch
specific (and so the build fails eg on a 64 bit machine that does
not have a 32-bit toolchain installed).  Use $(AM_FLAG_M3264_PRI)
instead.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9018
2009-01-22 01:36:51 +00:00
Nicholas Nethercote
cace8b55cd - No longer using VG_ARCH_ALL to determine the DIST_SUBDIRS used for
arch/OS/platform-specific tool test dirs, instead writing it by hand.
  This is important because up until now if we had any arch-specific test
  dirs, we needed such dirs for all archs.  Now that we also have
  OS-specific and platform-specific test dirs, we don't want to have
  (mostly) empty dirs for every arch/OS/platform.

- Correspondingly, removed several empty directories under memcheck/tests/
  and cachegrind/tests that are no longer needed.

- Also removed VG_ARCH_ALL from configure.in.

- Also used an arch-specific guard rather than a platform-specific one where
  appropriate in cachegrind/tests/Makefile.am.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9017
2009-01-22 01:13:16 +00:00
Nicholas Nethercote
c07262448b - Split up m_ume.c into m_ume/{main,elf,script}.c. This will make merging
the DARWIN branch easier later.
- Remove the disabled vgtest_ume test, it's very unlikely it'll ever work
  again.
- Move VG_(find_auxv) to initimg-linux.c, the only place it's used, and make
  it static.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9004
2009-01-21 02:26:56 +00:00
Nicholas Nethercote
0051efda41 Create memcheck/tests/linux/ and move some Linux-specific tests
into it.  Partial merge from DARWIN branch, r8943.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8975
2009-01-19 03:44:19 +00:00
Nicholas Nethercote
53b147dfb8 Create memcheck/tests/x86-linux/ and move some platform-specific tests (the
scalar* ones) into it.  Partial merge from DARWIN branch, r8943.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8974
2009-01-19 03:16:59 +00:00
Nicholas Nethercote
dafa3d1d8c trunk/memcheck/tests/Makefile.am
trunk/memcheck/tests/vcpu_bz2.c
trunk/memcheck/tests/vcpu_bz2.vgtest
    vcpu_bz2.c was (I think) an "svn copy" of perf/bz2.c.  Because it's a
    copy, the two can get out of sync, which was a problem with Greg
    Parker's Darwin patch.  So we remove vcpu_bz2.c, and make
    vcpu_bz2.vgtest invoke perf/bz2 directly.

trunk/cachegrind/tests/wrap5.c
trunk/cachegrind/tests/Makefile.am
trunk/cachegrind/tests/wrap5.vgtest
    wrap5.c was likewise an "svn copy" of memcheck/tests/wrap5.c, so we do
    the equivalent thing with it.

trunk/Makefile.am
    Fix a typo.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8919
2009-01-08 06:07:05 +00:00
Julian Seward
e791eae7c6 A couple of 'make dist' fixes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8782
2008-11-18 02:10:33 +00:00
Julian Seward
513611364e Update expected output, with a line number that's actually correct.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8746
2008-11-08 15:18:53 +00:00
Julian Seward
8f7ec4c30b Add a second expected output. It appears that a recent glibcs print
one (or a value near it) as "+1.0000e+00" instead of "+1.0000e-00".
Or it could be a rounding issue .. I dunno.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8745
2008-11-08 15:17:50 +00:00
Julian Seward
fbf22fd8f3 Attempt to reduce output variance by ensuring mainSort() is never inlined.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8744
2008-11-08 15:15:06 +00:00
Julian Seward
e8eb2c86b4 Use a "sided" comparison rather than a "point" comparison, so as to
ensure that gcc generates only one conditional jump per conditional
expression, not two.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8743
2008-11-08 15:14:01 +00:00
Julian Seward
d1dc2a9f7d Update expected output now that Memcheck's realloc implementation always
moves the block, even when the new block is smaller or the same size.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8742
2008-11-08 15:12:48 +00:00
Julian Seward
40399aab00 Fix longstanding bug in dual-arch support, which originated in
memcheck/tests/Makefile.am and was copied into drd/tests/Makefile.am.

When building regtests for a 32-bit only build on a 64-bit CPU, the
use of $(VG_ARCH) in these Makefiles is incorrect, because VG_ARCH
will be set to the 64-bit architecture, not the 32-bit architecture.

See comments on VG_ARCH_PRI and VG_ARCH_MAX in configure.in for more
details.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8623
2008-09-19 09:02:19 +00:00
Julian Seward
335992d8fc Merge all remaining changes from branches/PTRCHECK. These are some
relatively minor extensions to m_debuginfo, a major overhaul of
m_debuginfo/readdwarf3.c to get its space usage under control, and
changes throughout the system to enable heap-use profiling.

The majority of the merged changes were committed into
branches/PTRCHECK as the following revs: 8591 8595 8598 8599 8601 and
8161.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8621
2008-09-18 18:12:50 +00:00
Bart Van Assche
214f9a898a Disabled printing of file descriptor value in order to make the test results more reproducible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8575
2008-09-07 16:55:15 +00:00
Bart Van Assche
1f63c5ebc4 Added regression test for Linux' capget system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8553
2008-08-27 17:41:06 +00:00
Bart Van Assche
d968df6a0a Compiles now with old versions of <sys/epoll.h> too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8474
2008-07-29 16:28:36 +00:00
Bart Van Assche
57e17d3ef7 Fixed filter.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8286
2008-06-27 07:50:11 +00:00
Bart Van Assche
9c5e7c6670 Added extra filtering for the stderr output of malloc_free_fill such that the output of this test becomes independent of the Linux distribution the test is run on. Should fix #162819.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8285
2008-06-27 07:33:18 +00:00
Bart Van Assche
b3013e9de9 Reworked test such that file locking is now triggered from two different processes.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8277
2008-06-24 09:54:05 +00:00
Bart Van Assche
f15fefe571 Added missing mode_t argument to open() system call.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8274
2008-06-23 18:57:48 +00:00
Bart Van Assche
bad4b265c9 Result of timerfd() syscall is no longer printed to stdout, which should make this regression test more reproducible.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8271
2008-06-23 12:25:12 +00:00
Bart Van Assche
857eaf6fdb Added regression test for POSIX advisory locking (fcntl(..., F_SETFL, ...)).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8269
2008-06-23 11:43:28 +00:00
Nicholas Nethercote
7a741317fa Try to make this test more consistent across different machines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8182
2008-06-04 09:41:53 +00:00
Nicholas Nethercote
ed38943118 Try to make these tests more reliable for different machines.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8171
2008-06-01 22:49:25 +00:00
Julian Seward
e33553414e Add a regression test for fxsave.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8019
2008-05-09 21:38:12 +00:00
Julian Seward
cf46146797 Add a test case for #157748.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8018
2008-05-09 19:46:55 +00:00
Julian Seward
1cfc256f1d Add missing words to comment.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8015
2008-05-07 00:23:28 +00:00
Julian Seward
15dfc7886d Build fixes for AIX5.3.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8013
2008-05-06 23:01:05 +00:00
Julian Seward
111294590f Add an expected output for ppc64-linux; probably required due to dodgyness in
line number info, either in writing on gcc's part or reading on Valgrind's part.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8010
2008-05-06 16:54:53 +00:00
Julian Seward
b012d72856 Add a test for origin tracking through large floating point arrays.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8008
2008-05-06 08:14:57 +00:00
Bart Van Assche
6e2e200228 Fixed compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8004
2008-05-04 08:10:24 +00:00
Bart Van Assche
57478205c9 Disable gcc warnings about shadowed variables when compiling varinfo2.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8003
2008-05-04 08:09:44 +00:00
Julian Seward
f35eb37648 Update expected outputs following merge of branches/OTRACK_BY_INSTRUMENTATION.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7985
2008-05-01 22:34:16 +00:00
Julian Seward
4cae5c3ed5 Merge branches/OTRACK_BY_INSTRUMENTATION into the trunk. This adds
support to Memcheck for tracking the origin of uninitialised values,
if you use the --track-origins=yes flag.

This currently causes some Memcheck regression tests to fail, because
they now print an extra line of advisory text in their output.  This
will be fixed.

The core-tool interface is slightly changed.  The version number for
the interface needs to be incremented.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7982
2008-05-01 20:24:26 +00:00
Bart Van Assche
8d32121aca Compiles now on systems without definition of CLOCK_MONOTONIC.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7954
2008-04-28 16:26:49 +00:00
Bart Van Assche
875643af71 Only run the timerfd_create()/timerfd_gettime()/timerfd_settime() test on kernel 2.6.25 and later.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7947
2008-04-27 13:21:01 +00:00
Bart Van Assche
3d8bff5131 Fixed typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7946
2008-04-27 13:20:22 +00:00
Bart Van Assche
2d8928196c Fixed typo.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7945
2008-04-27 13:20:07 +00:00
Bart Van Assche
3ed6a4e595 Added regression test for timerfd_create(), timerfd_gettime() and timerfd_settime() system calls.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7941
2008-04-27 12:52:33 +00:00