[Rt-commit] rt branch, 4.0/code-policy, updated. rt-4.0.6-233-gdc56876

Thomas Sibley trs at bestpractical.com
Tue Oct 23 18:18:52 EDT 2012


The branch, 4.0/code-policy has been updated
       via  dc5687669f344ab62bb742c9a800d7d5bc33929d (commit)
      from  6bfa7f978349654df7d9b1478b90b00ccc856196 (commit)

Summary of changes:
 t/99-policy.t | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

- Log -----------------------------------------------------------------
commit dc5687669f344ab62bb742c9a800d7d5bc33929d
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Tue Oct 23 15:16:29 2012 -0700

    Check 06[40][40] for .in files under exec => 1
    
    The group/other bits aren't guaranteed.  Handle the same way as
    exec => -1 does.

diff --git a/t/99-policy.t b/t/99-policy.t
index 5455d10..ef14ee5 100644
--- a/t/99-policy.t
+++ b/t/99-policy.t
@@ -67,7 +67,7 @@ sub check {
     my $mode = sprintf( '%04o', ( stat $file )[2] & 07777 );
     if ($check{exec} == 1) {
         if ( $file =~ /\.in$/ ) {
-            is( $mode, '0644', "$file permission is 0644 (.in will add +x)" );
+            like( $mode, qr/^06[40][40]$/, "$file permission is 0644 (.in will add +x)" );
         } else {
             like( $mode, qr/^075[45]$/, "$file permission is 0754 or 0755" );
         }

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


More information about the Rt-commit mailing list