From 8b7b0cc5febef517b1587391bfd2a94f70da1d6c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sun, 13 Nov 2022 11:54:32 +0100 Subject: [PATCH] tests: section config: comment need for warn on debugging as often only warn really makes it out of perl/our pit of std out/err handling (e.g., I had a case where neither print STDERR nor syslog worked, but warn did) also, the tests are rather brittle w.r.t their expect_fail variant, as the actual expected error should be enforced. Signed-off-by: Thomas Lamprecht --- test/section_config_test.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/section_config_test.pl b/test/section_config_test.pl index f703fa4..22a9643 100755 --- a/test/section_config_test.pl +++ b/test/section_config_test.pl @@ -127,6 +127,7 @@ Conf::One->register(); Conf::Two->register(); Conf->init(); +# FIXME: allow development debug warnings?! local $SIG{__WARN__} = sub { die @_; }; my sub enum {