X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F07_bugreport.t;h=fbbb09fdd6a1600be859908e6ce0d07646cd2850;hb=ee73b48c52cedb53381b6c0291693fa1e2a66d2c;hp=c1438c276888711bb4cab8eec14f00131bf25a50;hpb=a40fd8e928b333287f7f52f590c8e2d0c2f90821;p=debbugs.git diff --git a/t/07_bugreport.t b/t/07_bugreport.t index c1438c2..fbbb09f 100644 --- a/t/07_bugreport.t +++ b/t/07_bugreport.t @@ -24,13 +24,8 @@ use HTTP::Status qw(RC_NOT_MODIFIED); use lib qw(t/lib); use DebbugsTest qw(:all); -my %config; -eval { - %config = create_debbugs_configuration(); -}; -if ($@) { - BAIL_OUT($@); -} +my %config = create_debbugs_configuration(); + # create a bug send_message(to=>'submit@bugs.something', @@ -53,7 +48,7 @@ my $bugreport_cgi_handler = sub { # I do not understand why this is necessary. $ENV{DEBBUGS_CONFIG_FILE} = "$config{config_dir}/debbugs_config"; my $fh; - open($fh,'-|',-e './cgi/version.cgi'? 'perl -I. -T ./cgi/bugreport.cgi' : 'perl -I. -T ../cgi/bugreport.cgi'); + open($fh,'-|',-e './cgi/version.cgi'? 'perl -Ilib -T ./cgi/bugreport.cgi' : 'perl -Ilib -T ../cgi/bugreport.cgi'); my $headers; my $status = 200; while (<$fh>) {