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
1 changed files with 2 additions and 2 deletions

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";
}