From 612557e022cece4ea954081cb7ab0d35c1dd2b12 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 9 Jul 2025 21:20:32 +0200 Subject: [PATCH] bump warnings to errors --- tests/appveyor.pm | 2 +- tests/azure.pm | 2 +- tests/certs/genserv.pl | 2 +- tests/configurehelp.pm.in | 2 +- tests/devtest.pl | 2 +- tests/directories.pm | 2 +- tests/ftpserver.pl | 2 +- tests/getpart.pm | 2 +- tests/globalconfig.pm | 2 +- tests/http-server.pl | 2 +- tests/http2-server.pl | 2 +- tests/http3-server.pl | 2 +- tests/pathhelp.pm | 2 +- tests/processhelp.pm | 2 +- tests/rtspserver.pl | 2 +- tests/runner.pm | 2 +- tests/runtests.pl | 2 +- tests/secureserver.pl | 2 +- tests/serverhelp.pm | 2 +- tests/servers.pm | 2 +- tests/sshhelp.pm | 2 +- tests/sshserver.pl | 2 +- tests/testutil.pm | 2 +- tests/tftpserver.pl | 2 +- tests/valgrind.pm | 2 +- 25 files changed, 25 insertions(+), 25 deletions(-) diff --git a/tests/appveyor.pm b/tests/appveyor.pm index ed1728682c..9f3cd3193a 100644 --- a/tests/appveyor.pm +++ b/tests/appveyor.pm @@ -26,7 +26,7 @@ package appveyor; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/azure.pm b/tests/azure.pm index 2810f48e17..e071c6a318 100644 --- a/tests/azure.pm +++ b/tests/azure.pm @@ -26,7 +26,7 @@ package azure; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/certs/genserv.pl b/tests/certs/genserv.pl index 42aba5370e..5a034fbada 100755 --- a/tests/certs/genserv.pl +++ b/tests/certs/genserv.pl @@ -24,7 +24,7 @@ ########################################################################### use strict; -use warnings; +use warnings 'FATAL' => 'all'; use File::Basename; use File::Spec; diff --git a/tests/configurehelp.pm.in b/tests/configurehelp.pm.in index 626df2c511..851f878d16 100644 --- a/tests/configurehelp.pm.in +++ b/tests/configurehelp.pm.in @@ -25,7 +25,7 @@ package configurehelp; use strict; -use warnings; +use warnings 'FATAL' => 'all'; use Exporter; use vars qw( diff --git a/tests/devtest.pl b/tests/devtest.pl index 168e00ec94..67b51f527a 100755 --- a/tests/devtest.pl +++ b/tests/devtest.pl @@ -34,7 +34,7 @@ # curl -vkL https://localhost:/11 use strict; -use warnings; +use warnings 'FATAL' => 'all'; use 5.006; BEGIN { diff --git a/tests/directories.pm b/tests/directories.pm index 8b3c1addfa..dde83d4cd5 100644 --- a/tests/directories.pm +++ b/tests/directories.pm @@ -25,7 +25,7 @@ package directories; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index 927d4c66a3..8dd59b51b3 100755 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -41,7 +41,7 @@ # use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'}); diff --git a/tests/getpart.pm b/tests/getpart.pm index 3f9ecbb5af..52a757f9b6 100644 --- a/tests/getpart.pm +++ b/tests/getpart.pm @@ -25,7 +25,7 @@ package getpart; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/globalconfig.pm b/tests/globalconfig.pm index 83c4ccbaed..927bcd0099 100644 --- a/tests/globalconfig.pm +++ b/tests/globalconfig.pm @@ -28,7 +28,7 @@ package globalconfig; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/http-server.pl b/tests/http-server.pl index d100caef68..071f652662 100755 --- a/tests/http-server.pl +++ b/tests/http-server.pl @@ -24,7 +24,7 @@ #*************************************************************************** use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'}); diff --git a/tests/http2-server.pl b/tests/http2-server.pl index 586fa638a3..558a3ad077 100755 --- a/tests/http2-server.pl +++ b/tests/http2-server.pl @@ -30,7 +30,7 @@ use Cwd 'abs_path'; use File::Basename; use File::Spec; -use warnings; +use warnings 'FATAL' => 'all'; my $logdir = "log"; my $pidfile = "$logdir/nghttpx.pid"; diff --git a/tests/http3-server.pl b/tests/http3-server.pl index ea9eeb821c..0c4cd77cee 100755 --- a/tests/http3-server.pl +++ b/tests/http3-server.pl @@ -31,7 +31,7 @@ use Cwd 'abs_path'; use File::Basename; use File::Spec; -use warnings; +use warnings 'FATAL' => 'all'; my $logdir = "log"; my $pidfile = "$logdir/nghttpx.pid"; diff --git a/tests/pathhelp.pm b/tests/pathhelp.pm index 1695825188..82fee0f8eb 100644 --- a/tests/pathhelp.pm +++ b/tests/pathhelp.pm @@ -50,7 +50,7 @@ package pathhelp; use strict; -use warnings; +use warnings 'FATAL' => 'all'; use File::Spec; BEGIN { diff --git a/tests/processhelp.pm b/tests/processhelp.pm index 571ed5b34d..1d0e42ba1d 100644 --- a/tests/processhelp.pm +++ b/tests/processhelp.pm @@ -25,7 +25,7 @@ package processhelp; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/rtspserver.pl b/tests/rtspserver.pl index d2e1339073..af53cb1ed3 100755 --- a/tests/rtspserver.pl +++ b/tests/rtspserver.pl @@ -24,7 +24,7 @@ #*************************************************************************** use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'}); diff --git a/tests/runner.pm b/tests/runner.pm index a208eba3a2..36b6180515 100644 --- a/tests/runner.pm +++ b/tests/runner.pm @@ -35,7 +35,7 @@ package runner; use strict; -use warnings; +use warnings 'FATAL' => 'all'; use 5.006; use File::Basename; diff --git a/tests/runtests.pl b/tests/runtests.pl index 3908c1a25a..491eb1f2b7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -57,7 +57,7 @@ # given, this won't be a problem. use strict; -use warnings; +use warnings 'FATAL' => 'all'; use 5.006; use POSIX qw(strftime); diff --git a/tests/secureserver.pl b/tests/secureserver.pl index 930845e971..13f4801084 100755 --- a/tests/secureserver.pl +++ b/tests/secureserver.pl @@ -28,7 +28,7 @@ # non-secure test harness servers. use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'}); diff --git a/tests/serverhelp.pm b/tests/serverhelp.pm index fd762935a2..0f8418b950 100644 --- a/tests/serverhelp.pm +++ b/tests/serverhelp.pm @@ -27,7 +27,7 @@ package serverhelp; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/servers.pm b/tests/servers.pm index df32ca7e4e..73af43f66c 100644 --- a/tests/servers.pm +++ b/tests/servers.pm @@ -31,7 +31,7 @@ package servers; use IO::Socket; use Time::HiRes; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/sshhelp.pm b/tests/sshhelp.pm index 72a81611e4..b73762fe4b 100644 --- a/tests/sshhelp.pm +++ b/tests/sshhelp.pm @@ -25,7 +25,7 @@ package sshhelp; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/sshserver.pl b/tests/sshserver.pl index 98c15bc2a9..dd0d87a7fb 100755 --- a/tests/sshserver.pl +++ b/tests/sshserver.pl @@ -27,7 +27,7 @@ # Also creates the ssh configuration files needed for these tests. use strict; -use warnings; +use warnings 'FATAL' => 'all'; use Cwd; use Cwd 'abs_path'; use Digest::MD5; diff --git a/tests/testutil.pm b/tests/testutil.pm index d1cf0c6b34..63267f1738 100644 --- a/tests/testutil.pm +++ b/tests/testutil.pm @@ -28,7 +28,7 @@ package testutil; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter); diff --git a/tests/tftpserver.pl b/tests/tftpserver.pl index 862d21cd13..b21adfc1ed 100755 --- a/tests/tftpserver.pl +++ b/tests/tftpserver.pl @@ -24,7 +24,7 @@ #*************************************************************************** use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { push(@INC, $ENV{'srcdir'}) if(defined $ENV{'srcdir'}); diff --git a/tests/valgrind.pm b/tests/valgrind.pm index 95d08a05fe..5a559053bc 100644 --- a/tests/valgrind.pm +++ b/tests/valgrind.pm @@ -25,7 +25,7 @@ package valgrind; use strict; -use warnings; +use warnings 'FATAL' => 'all'; BEGIN { use base qw(Exporter);