]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests: torture: don't duplicate valgrind command
authorYedaya Katsman <yedaya.ka@gmail.com>
Wed, 4 Jun 2025 18:22:35 +0000 (21:22 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 10 Jun 2025 13:46:13 +0000 (15:46 +0200)
When running torture tests with valgrind enabled, the torture function
got a command line that already had the valgrind invocation in it. It
added another, at the end resulting in an empty valgrind log file.

Remove the duplicate logic adding valgrind, which already had a bit of
different logic that wasn't updated when the other one was.

Closes #17501

tests/runner.pm

index f85a1925ec83fe948da6cb4f9941c2410211da7c..da26efb3467ce5cdcf887f87d9bb06323a59a183 100644 (file)
@@ -502,19 +502,6 @@ sub torture {
         unlink("$LOGDIR/$MEMDUMP");
 
         my $cmd = $testcmd;
-        if($valgrind && !$gdbthis) {
-            my @valgrindoption = getpart("verify", "valgrind");
-            if((!@valgrindoption) || ($valgrindoption[0] !~ /disable/)) {
-                my $valgrindcmd = shell_quote($valgrind) . " ";
-                $valgrindcmd .= "$valgrind_tool " if($valgrind_tool);
-                $valgrindcmd .= "--quiet --leak-check=yes ";
-                $valgrindcmd .= "--suppressions=$srcdir/valgrind.supp ";
-                # $valgrindcmd .= "--gen-suppressions=all ";
-                $valgrindcmd .= "--num-callers=16 ";
-                $valgrindcmd .= "${valgrind_logfile}=$LOGDIR/valgrind$testnum";
-                $cmd = "$valgrindcmd $testcmd";
-            }
-        }
         logmsg "*** Function number $limit is now set to fail ***\n" if($gdbthis);
 
         my $ret = 0;