X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F07_control_limit.t;h=02cfc3747727c796d803e2260268d7061d5be020;hb=fd28ccea72e13b7e2dd7323af7c0cbaad9bb6663;hp=630cc8d68b060b83b69c2287eed082a6989c5918;hpb=9e9c6dbc3a745c02b69b76eeb763525bf44befc3;p=debbugs.git diff --git a/t/07_control_limit.t b/t/07_control_limit.t index 630cc8d..02cfc37 100644 --- a/t/07_control_limit.t +++ b/t/07_control_limit.t @@ -1,6 +1,6 @@ # -*- mode: cperl; -*- -use Test::More tests => 4; +use Test::More tests => 8; use warnings; use strict; @@ -78,7 +78,7 @@ $SD_SIZE = 'control@bugs.something messages appear to have been sent out properly'); # make sure this fails -ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 errors): Munging a bug with limit_package_bar")) == 0, +ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 error): Munging a bug with limit_package_bar")) == 0, 'control@bugs.something'. "limit message failed with 1 error"); send_message(to => 'control@bugs.something', @@ -102,3 +102,58 @@ $SD_SIZE = ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed: Munging a bug with limit_package_foo")) == 0, 'control@bugs.something'. "limit message succeeded with no errors"); +send_message(to=>'submit@bugs.something', + headers => [To => 'submit@bugs.something', + From => 'foo@bugs.something', + Subject => 'Submiting a bug', + ], + body => < 'control@bugs.something', + headers => [To => 'control@bugs.something', + From => 'foo@bugs.something', + Subject => "Munging a bug with limit_package_bar", + ], + body => < 'control@bugs.something', + headers => [To => 'control@bugs.something', + From => 'foo@bugs.something', + Subject => "Munging a bug with limit_package_foo", + ], + body => <