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:
parent
c579c7bf1e
commit
bebe462a67
@ -135,14 +135,14 @@ sub run
|
|||||||
{
|
{
|
||||||
$cmdline = 'gdb --args ' . $cmdline;
|
$cmdline = 'gdb --args ' . $cmdline;
|
||||||
}
|
}
|
||||||
elsif ($valgrind == 1)
|
elsif ($valgrind eq "1")
|
||||||
{
|
{
|
||||||
$cmdline =
|
$cmdline =
|
||||||
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
'valgrind --suppressions=' . $VALGRIND_SUPP_FILE
|
||||||
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
. ' --error-exitcode=301 --leak-check=yes --track-origins=yes '
|
||||||
. $cmdline;
|
. $cmdline;
|
||||||
}
|
}
|
||||||
elsif ($valgrind ne q{} && $valgrind != 0)
|
elsif ($valgrind ne q{} && $valgrind ne "0")
|
||||||
{
|
{
|
||||||
$cmdline = "$valgrind $cmdline";
|
$cmdline = "$valgrind $cmdline";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user