474 Commits

Author SHA1 Message Date
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
Julian Seward
e637050b55 Add test for tw instruction.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6797
2007-09-01 23:22:39 +00:00
Julian Seward
5705548dab Add test for tw and td instructions.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6796
2007-09-01 23:16:49 +00:00
Julian Seward
902c2a81c1 Add regtest for amd64 implementation of maskmovq and maskmovdq.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6794
2007-09-01 18:58:54 +00:00
Julian Seward
7a6b2f9713 Older assemblers on amd64-linux don't do lahf/sahf; work around that.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6727
2007-05-03 21:25:37 +00:00
Julian Seward
09c2f81371 Test sahf/lahf on amd64.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6695
2007-04-07 12:15:44 +00:00
Julian Seward
953e3c3059 Don't build SSE3 tests if the configure test determined that the assembler
does not know about SSE3 instructions.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6657
2007-03-22 12:13:13 +00:00
Julian Seward
3235d88de8 Add a test for vex ppc64 code generation bug fixed by vex r1739
(When generating 64-bit code, ensure that any addresses used in 4 or 8
byte loads or stores of the form reg+imm have the lowest 2 bits of imm
set to zero, so that they can safely be used in ld/ldu/lda/std/stdu
instructions.)



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6645
2007-03-12 02:10:23 +00:00
Julian Seward
a3f3016abe Updated expected output.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@6590
2007-02-13 10:24:32 +00:00