From: Philippe Wooding Date: Sun, 17 May 2015 09:18:14 +0000 (+0200) Subject: Update SQL insert query in test to be compatible with old version of SQLite that... X-Git-Tag: release_3_0_9~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b67f896d8d6059cdd312dc4765590050183e57b;p=thirdparty%2Ffreeradius-server.git Update SQL insert query in test to be compatible with old version of SQLite that comes with Travis. --- diff --git a/src/tests/modules/sql/auth.unlang b/src/tests/modules/sql/auth.unlang index 361a768fd84..0cb9aed231a 100644 --- a/src/tests/modules/sql/auth.unlang +++ b/src/tests/modules/sql/auth.unlang @@ -12,7 +12,17 @@ else { } update { - Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'NAS-IP-Address', '==', '1.2.3.4'), ('foo', 'Cleartext-Password', ':=', 'password')}" + Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'NAS-IP-Address', '==', '1.2.3.4')}" +} +if (!&Tmp-String-0) { + test_fail +} +else { + test_pass +} + +update { + Tmp-String-0 := "%{sql:INSERT INTO radcheck (username, attribute, op, value) VALUES ('foo', 'Cleartext-Password', ':=', 'password')}" } if (!&Tmp-String-0) { test_fail