|
From: <sv...@va...> - 2005-11-12 16:08:15
|
Author: njn
Date: 2005-11-12 16:08:09 +0000 (Sat, 12 Nov 2005)
New Revision: 5098
Log:
Make regtests work with --enable-inner.
Modified:
trunk/tests/vg_regtest.in
Modified: trunk/tests/vg_regtest.in
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/tests/vg_regtest.in 2005-11-12 15:51:31 UTC (rev 5097)
+++ trunk/tests/vg_regtest.in 2005-11-12 16:08:09 UTC (rev 5098)
@@ -278,9 +278,14 @@
printf("%-16s valgrind $vgopts $prog $args\n", "$name:");
=20
# Pass the appropriate --tool option for the directory (can be overr=
idden
- # by an "args:" line, though). =20
+ # by an "args:" line, though). Set both VALGRIND_LIB and
+ # VALGRIND_LIB_INNER in case this Valgrind was configured with
+ # --enable-inner.
my $tool=3Ddetermine_tool();
- mysystem("VALGRIND_LIB=3D$tests_dir/.in_place $valgrind --command-li=
ne-only=3Dyes --memcheck:leak-check=3Dno --addrcheck:leak-check=3Dno --to=
ol=3D$tool $vgopts $prog $args > $name.stdout.out 2> $name.stderr.out");
+ mysystem("VALGRIND_LIB=3D$tests_dir/.in_place VALGRIND_LIB_INNER=3D$=
tests_dir/.in_place "
+ . "$valgrind --command-line-only=3Dyes --memcheck:leak-check=3D=
no "
+ . "--addrcheck:leak-check=3Dno --tool=3D$tool $vgopts "
+ . "$prog $args > $name.stdout.out 2> $name.stderr.out");
=20
if (defined $stdout_filter) {
mysystem("$stdout_filter < $name.stdout.out > $tmp");
|