1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Silence warning in perl test suite

* tests/WgetTests.pm: Use string comparisons for $valgrind variable
This commit is contained in:
Tim Rühsen 2015-04-14 12:14:21 +02:00 committed by Tim Ruehsen
parent c579c7bf1e
commit bebe462a67

View File

@ -135,14 +135,14 @@ sub run
{
$cmdline = 'gdb --args ' . $cmdline;
}
elsif ($valgrind == 1)
elsif ($valgrind eq "1")
{
$cmdline =
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
. $cmdline;
}
elsif ($valgrind ne q{} && $valgrind != 0)
elsif ($valgrind ne q{} && $valgrind ne "0")
{
$cmdline = "$valgrind $cmdline";
}