[Rt-commit] rt branch, 4.2-trunk, updated. rt-4.2.8-4-g2e58cae

Alex Vandiver alexmv at bestpractical.com
Sat Oct 4 02:17:38 EDT 2014


The branch, 4.2-trunk has been updated
       via  2e58cae0c16cb03ad2a47ac929cf32e25e37d184 (commit)
      from  0398540616e4069622c918ccb143f1c835cc6a7d (commit)

Summary of changes:
 t/mail/sendmail-plaintext.t | 2 +-
 t/mail/sendmail.t           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 2e58cae0c16cb03ad2a47ac929cf32e25e37d184
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Fri Oct 3 16:34:10 2014 -0400

    Properly check the return code of send_via_mailgate
    
    8da874c9 changed send_via_mailgate to return a status code, as if it had
    run bin/mailgate by hand.  As such, success is a 0 value, and failure
    values are determined by right-shifting.

diff --git a/t/mail/sendmail-plaintext.t b/t/mail/sendmail-plaintext.t
index e833b6f..b9eb719 100644
--- a/t/mail/sendmail-plaintext.t
+++ b/t/mail/sendmail-plaintext.t
@@ -24,7 +24,7 @@ sub mail_in_ticket {
 
     RT::Test->clean_caught_mails;
     my ($status, $id) = RT::Test->send_via_mailgate( $content );
-    ok( $status, "Fed $filename into mailgate");
+    ok( !$status, "Fed $filename into mailgate");
 
     my $ticket = RT::Ticket->new(RT->SystemUser);
     $ticket->Load($id);
diff --git a/t/mail/sendmail.t b/t/mail/sendmail.t
index 08f4229..76975a1 100644
--- a/t/mail/sendmail.t
+++ b/t/mail/sendmail.t
@@ -24,7 +24,7 @@ sub mail_in_ticket {
 
     RT::Test->clean_caught_mails;
     my ($status, $id) = RT::Test->send_via_mailgate( $content );
-    ok( $status, "Fed $filename into mailgate");
+    ok( !$status, "Fed $filename into mailgate");
 
     my $ticket = RT::Ticket->new(RT->SystemUser);
     $ticket->Load($id);

-----------------------------------------------------------------------


More information about the rt-commit mailing list