Tests: Unterstützung für Konfigurationsparameter "debug.backtrace_on_die"
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 2 Jul 2013 09:43:37 +0000 (11:43 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 2 Jul 2013 09:44:59 +0000 (11:44 +0200)
t/Support/TestSetup.pm

index 081e7b1..bd067d2 100644 (file)
@@ -46,6 +46,8 @@ sub _login {
 
   $::instance_conf->init;
 
+  $SIG{__DIE__} = sub { Carp::confess( @_ ) } if $::lx_office_conf{debug}->{backtrace_on_die};
+
   return 1;
 }