]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/11_blocks.t
Prefer the most recent debversion in the dependency list
[debbugs.git] / t / 11_blocks.t
index 5e277cdb4147ae18e1aa38c82afbae45fa4fbd62..95d4de602427378f5ca4d68641713cf720f2d203 100644 (file)
@@ -25,13 +25,8 @@ use Test::WWW::Mechanize;
 
 # HTTP::Server:::Simple defines a SIG{CHLD} handler that breaks system; undef it here.
 $SIG{CHLD} = sub {};
-my %config;
-eval {
-     %config = create_debbugs_configuration();
-};
-if ($@) {
-     BAIL_OUT($@);
-}
+my %config = create_debbugs_configuration();
+
 
 my $sendmail_dir = $config{sendmail_dir};
 my $spool_dir = $config{spool_dir};
@@ -161,7 +156,7 @@ ok($status->{blockedby} eq '5','bug 3 is blocked by exactly 5');
 my $bugreport_cgi_handler = sub {
      # I do not understand why this is necessary.
      $ENV{DEBBUGS_CONFIG_FILE} = "$config{config_dir}/debbugs_config";
-     my $content = qx(perl -I. -T cgi/bugreport.cgi);
+     my $content = qx(perl -Ilib -T cgi/bugreport.cgi);
      $content =~ s/^\s*Content-Type:[^\n]+\n*//si;
      print $content;
 };