From b005448a9c17b1784d61238163db4aa6ab661fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim Rühsen?= Date: Tue, 14 Apr 2015 12:14:21 +0200 Subject: [PATCH 3/3] 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 3427a1b..501aeba 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-exitcode01 --leak-check=yes --track-origins=yes ' . $cmdline; } - elsif ($valgrind ne q{} && $valgrind != 0) + elsif ($valgrind ne q{} && $valgrind ne "0") { $cmdline = "$valgrind $cmdline"; } -- 2.1.4