diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-10-25 14:30:51 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-10-25 14:30:51 +0000 |
commit | 824aa5f9181a22a55224d6945886894029d04a3d (patch) | |
tree | 87aa64ff006578a1df2b647dbcc3bf0224eebd90 /tests | |
parent | ca67dcbc055bb1a017e9d215859362348dbbcbaa (diff) |
Michal Marek fixed the test script to be able to use valgrind even when the
lib is built shared with libtool.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/runtests.pl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 71a02c9f6..875d8baa6 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -1747,7 +1747,7 @@ sub singletest { } if($valgrind) { - $CMDLINE = "valgrind ".$valgrind_tool."--leak-check=yes --num-callers=16 ${valgrind_logfile}=log/valgrind$testnum $CMDLINE"; + $CMDLINE = "$valgrind ".$valgrind_tool."--leak-check=yes --num-callers=16 ${valgrind_logfile}=log/valgrind$testnum $CMDLINE"; } $CMDLINE .= "$cmdargs >>$STDOUT 2>>$STDERR"; @@ -2537,10 +2537,8 @@ if($valgrind) { open(C, "<$CURL"); my $l = <C>; if($l =~ /^\#\!/) { - # The first line starts with "#!" which implies a shell-script. - # This means libcurl is built shared and curl is a wrapper-script - # Disable valgrind in this setup - $valgrind=0; + # A shell script. This is typically when built with libtool, + $valgrind="../libtool --mode=execute $valgrind"; } close(C); |