From 51c7471d48efd62b2d4f5647782ba1e849d4c35a Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Tue, 18 Mar 2014 16:17:56 +0000 Subject: Fix ACL "condition =" for negative number values. Bug 1005 Fix conditional "bool{}" for negative number values, to match. --- test/scripts/0000-Basic/0002 | 3 ++- test/scripts/0000-Basic/0023 | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'test/scripts') diff --git a/test/scripts/0000-Basic/0002 b/test/scripts/0000-Basic/0002 index 367d558b3..7b6c34b3e 100644 --- a/test/scripts/0000-Basic/0002 +++ b/test/scripts/0000-Basic/0002 @@ -602,7 +602,7 @@ abcdea abc z ${tr{abcdea}{abc}{z}} " yes" ${if bool{ yes}{true}{false}} EXPECT: true " no" ${if bool{ no}{true}{false}} EXPECT: false "yes " ${if bool{yes }{true}{false}} EXPECT: true -"-1" ${if bool{-1}{true}{false}} EXPECT: error +"-1" ${if bool{-1}{true}{false}} EXPECT: true "0" ${if bool{0}{true}{false}} EXPECT: false "1" ${if bool{1}{true}{false}} EXPECT: true " 0 " ${if bool{ 0 }{true}{false}} EXPECT: false @@ -612,6 +612,7 @@ abcdea abc z ${tr{abcdea}{abc}{z}} " " ${if bool{ }{true}{false}} EXPECT: false "text" ${if bool{text}{true}{false}} EXPECT: error " text" ${if bool{ text}{true}{false}} EXPECT: error +"-text" ${if bool{-text}{true}{false}} EXPECT: error "text " ${if bool{text }{true}{false}} EXPECT: error " text " ${if bool{ text }{true}{false}} EXPECT: error "00" ${if bool{00}{true}{false}} EXPECT: false diff --git a/test/scripts/0000-Basic/0023 b/test/scripts/0000-Basic/0023 index 28c6ec97a..51e7123d0 100644 --- a/test/scripts/0000-Basic/0023 +++ b/test/scripts/0000-Basic/0023 @@ -299,6 +299,11 @@ data . mail from: rcpt to: +rset +mail from: +rcpt to: +data +. quit **** exim -DLOG_SELECTOR=log_selector=-acl_warn_skipped -odi -bs -oMa 56.56.56.56 -- cgit v1.2.3