Commit Graph

482 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
5cf0a9d64d Merge part of r8943 from the Darwin branch -- use VGA_* instead of VGP_* for
selecting the arch-specific tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9015
2009-01-21 22:52:39 +00:00
Nicholas Nethercote
2047484bc5 Add a comment explaining this test.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8984
2009-01-19 21:33:25 +00:00
Tom Hughes
6917b2e4e4 SSE3 and SSSE3 are two different things, so add a proper SSSE3 feature
test and use that to guard the SSSE3 tests.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8942
2009-01-12 15:26:59 +00:00
Bart Van Assche
5aef6d2e32 Fixed typo (a space was lost by copying text between shell sessions).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8933
2009-01-11 16:16:14 +00:00
Bart Van Assche
94cec1a702 The blockfault regression test now passes on 64 bit systems too.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8932
2009-01-10 09:34:13 +00:00
Julian Seward
3a1362dd93 Update expected outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8863
2008-12-22 15:40:48 +00:00
Julian Seward
5319fd78d6 Add a new expected output for this test. Really it's a bad test,
in the sense that there are a huge number of valid outcomes, but
I'm not sure how to test it better.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8740
2008-11-08 15:06:57 +00:00
Julian Seward
68fec5b14a Update expected output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8739
2008-11-08 15:05:49 +00:00
Julian Seward
9ea912641f Run this test -q, so as to remove the variance in outputs exhibited as
different numbers of blank lines than expected.  I assume this
signifies that different numbers of forked-but-not-exec'd processes
are exiting, but I'm not sure.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8738
2008-11-08 15:04:58 +00:00
Julian Seward
5aecd38266 Add a test case for #156404 (main thread stack not getting extended
downwards properly at syscalls).


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8718
2008-10-30 11:11:40 +00:00
Julian Seward
684fac4a06 This should have been committed as part of r8623 (Fix longstanding bug
in dual-arch support).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8624
2008-09-19 09:27:02 +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
c3ed10e1ac Make the rlimit_nofile regression tests less system dependent.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8134
2008-05-27 13:40:36 +00:00
Bart Van Assche
6d555b318a Make the fdleak regression tests less system dependent.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8133
2008-05-27 12:33:29 +00:00
Bart Van Assche
c1a3645bf9 #define HAS_ALTIVEC is now fetched from config.h instead of from Makefile.am.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8128
2008-05-25 16:43:15 +00:00
Bart Van Assche
a7e22b19a7 Fixed compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8050
2008-05-12 16:48:25 +00:00
Julian Seward
a1fdd2393b Add a test case for #152818 (from Sergei Trofimovich)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8043
2008-05-11 10:45:29 +00:00
Julian Seward
5c6a8cc4dc Make sure compilation of pth_cancel1.c gets $(AM_FLAG_M3264_PRI).
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8014
2008-05-07 00:22:47 +00:00
Bart Van Assche
b2d50f3f3c Added yet another output variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7938
2008-04-27 07:11:45 +00:00
Bart Van Assche
31ee991c01 Added yet another output variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7937
2008-04-27 07:07:20 +00:00
Bart Van Assche
5f2275a405 Added yet another output variant.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7936
2008-04-27 07:06:14 +00:00
Bart Van Assche
61212ce1c9 Suppress unavoidable warning during compilation of pth_cancel1.c.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7924
2008-04-26 18:14:34 +00:00
Bart Van Assche
fcb7b31e55 Moved mallinfo regression test from none/tests to memcheck/tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7903
2008-04-22 16:11:23 +00:00
Bart Van Assche
36a089bdce Made mallinfo() regression test more extensive, based on a contribution by Eugene Toder.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7902
2008-04-21 17:41:32 +00:00
Bart Van Assche
854fc1cb63 Added regression test for mallinfo().
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7889
2008-04-19 14:46:57 +00:00
Julian Seward
14af4957fc Merge in the DATASYMS branch.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7540
2008-03-03 01:35:41 +00:00
Nicholas Nethercote
e23b38512f Fix minor breakage in 7 tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7405
2008-02-13 05:05:58 +00:00
Julian Seward
5679a22410 Update copyright dates ("200X-2007" --> "200X-2008").
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7398
2008-02-11 11:34:59 +00:00
Nicholas Nethercote
8d9deb93d5 From Bart van Assche:
A long time ago pthreads-functions were instrumented in the drd-patch
via modifications of coregrind/vg_preloaded.c. A.o. detached threads
were recognized by intercepting pthread_create(). This intercept was
active for all tools, so it made sense to add a unit test for it
(none/tests/pth_detached.c). This intercept has been moved from
coregrind/vg_preloaded.c to exp-drd/drd_preloaded.c, so this unit
test does no longer make sense for nulgrind. This test may be
removed.




git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7391
2008-02-10 22:36:55 +00:00
Julian Seward
e6177495b9 Try to fix build system breakage w.r.t. ssse3_misaligned. It isn't
created from a .def file so should not be included in INSN_TESTS.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7389
2008-02-10 17:46:46 +00:00
Julian Seward
f84adcc43f Only build the SSSE3 tests on machines whose assemblers know about
these instructions.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7387
2008-02-09 12:07:40 +00:00
Julian Seward
8d76c51997 Add SSSE3 tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7385
2008-02-09 01:55:52 +00:00
Julian Seward
4f282e99ce Improve handling of programs which require very large main thread
stacks.  Instead of hardwiring the main thread stack to a max of 16MB
and segfaulting the app beyond that point, allow the user to specify
the main stack size using the new flag --main-stacksize=<number>.

If said flag is not present, the current default, which is "MIN(16GB,
current ulimit -s value)", is used.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7302
2007-12-18 01:49:23 +00:00
Julian Seward
9460e84deb Get rid of compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7217
2007-11-25 15:40:17 +00:00
Julian Seward
5868e1c607 Update expected outputs.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7206
2007-11-24 22:53:31 +00:00
Nicholas Nethercote
d6b40a390d Fixed up the log file mess throughout, including the docs. This killed
--log-file-qualifier and --log-file-exactly.

Updated NEWS some in preparation for 3.3.0.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7202
2007-11-23 01:41:32 +00:00
Julian Seward
af406f51e9 Merge (from branches/THRCHECK) misc build-system changes. Nothing
significant.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7128
2007-11-09 23:30:51 +00:00
Julian Seward
6127ab922f Test for decoding of some instructions with redundant REX.W bits in
their prefix.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7104
2007-11-06 22:00:35 +00:00