]> git.proxmox.com Git - pve-common.git/commitdiff
tests: section config: comment need for warn on debugging
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 13 Nov 2022 10:54:32 +0000 (11:54 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sun, 13 Nov 2022 10:54:34 +0000 (11:54 +0100)
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 <t.lamprecht@proxmox.com>
test/section_config_test.pl

index f703fa42d5878f2082c9923a8c1e2e578a7ee41c..22a964358c7e70594381ed89ab2fe66acee030a7 100755 (executable)
@@ -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 {