[Bps-public-commit] rt-authen-externalauth branch, master, updated. 0.18-1-g9525097

Jim Brandt jbrandt at bestpractical.com
Wed Mar 26 09:54:52 EDT 2014


The branch, master has been updated
       via  952509739fdd303ea61555a6428c928b4e457a72 (commit)
      from  3b19f7ddf2ecea87fe2e338ed931a1245e3606a4 (commit)

Summary of changes:
 xt/sessions.t | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit 952509739fdd303ea61555a6428c928b4e457a72
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Mar 26 09:49:13 2014 -0400

    Insert one record at a time in test script
    
    The previous INSERT in sessions.t inserted multiple rows
    in one VALUES clause, a feature added to sqlite3 in 3.7.11. Change
    to insert individual rows to avoid failures on systems
    with older default sqlite installs like Mac OS 10.7 which has
    version 3.7.7.

diff --git a/xt/sessions.t b/xt/sessions.t
index c1784d4..403f258 100644
--- a/xt/sessions.t
+++ b/xt/sessions.t
@@ -84,11 +84,13 @@ sub setup_auth_source {
         );
     EOF
     $dbh->do( $schema );
-    $dbh->do(<<"    SQL");
-        INSERT INTO $table VALUES
-            ( 'tom',  '$password', 'tom\@invalid.tld'),
-            ( 'alex', '$password', 'alex\@invalid.tld');
-    SQL
+
+    foreach my $user ( qw(tom alex) ){
+        $dbh->do(<<"            SQL");
+            INSERT INTO $table VALUES
+            ( '$user',  '$password', '$user\@invalid.tld');
+            SQL
+    }
 
     RT->Config->Set( ExternalAuthPriority        => ['My_SQLite'] );
     RT->Config->Set( ExternalInfoPriority        => ['My_SQLite'] );

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



More information about the Bps-public-commit mailing list