From bebe462a67ebd34fe04accc7bec668f51e58f823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Tue, 14 Apr 2015 12:14:21 +0200 Subject: [PATCH] Silence warning in perl test suite * tests/WgetTests.pm: Use string comparisons for $valgrind variable --- tests/WgetTests.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/WgetTests.pm b/tests/WgetTests.pm index 3427a1bb..501aeba8 100644 --- a/tests/WgetTests.pm +++ b/tests/WgetTests.pm @@ -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"; }