From: Alan T. DeKok Date: Sat, 30 Sep 2023 13:28:49 +0000 (-0400) Subject: more cast fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a68f3b5aa2ebdd14497491d1b8da885a8dbcea05;p=thirdparty%2Ffreeradius-server.git more cast fixes --- diff --git a/src/tests/keywords/pairs b/src/tests/keywords/pairs index e35b15d946b..19a4adbbf69 100644 --- a/src/tests/keywords/pairs +++ b/src/tests/keywords/pairs @@ -46,4 +46,8 @@ if !(&Tmp-String-6 == 'Tmp-Group-0 = { Tmp-String-0 = "This is a string", Tmp-St test_fail } +&request -= &Tmp-Group-0 + + + success diff --git a/src/tests/modules/test/dollar_expansions.unlang b/src/tests/modules/test/dollar_expansions.unlang index 562e2d93155..58708b3f819 100644 --- a/src/tests/modules/test/dollar_expansions.unlang +++ b/src/tests/modules/test/dollar_expansions.unlang @@ -13,7 +13,7 @@ if (&Fall-Through != ${d_term}) { test_fail } -if ("${d_term}" != yes) { +if ((bool)"${d_term}" != yes) { test_fail } diff --git a/src/tests/modules/test/policy.conf b/src/tests/modules/test/policy.conf index ff86844bd27..b9b1117c71e 100644 --- a/src/tests/modules/test/policy.conf +++ b/src/tests/modules/test/policy.conf @@ -52,7 +52,7 @@ dollar_expansions { test_fail } - if ("${d_term}" != yes) { + if ((bool)"${d_term}" != yes) { test_fail }