From: Arran Cudbard-Bell Date: Thu, 8 Nov 2018 21:59:17 +0000 (-0500) Subject: Call string in update sections in the strings test X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=058387c367e08fbe58b1df222fe84f2a889692e1;p=thirdparty%2Ffreeradius-server.git Call string in update sections in the strings test --- diff --git a/src/tests/keywords/escape-sequences b/src/tests/keywords/escape-sequences index 40c8f0a094e..81bdf05fd2f 100644 --- a/src/tests/keywords/escape-sequences +++ b/src/tests/keywords/escape-sequences @@ -26,7 +26,11 @@ if ("%{length:&Tmp-String-1}" != 42) { test_fail } -if ("%{string:Tmp-Octets-0}" != "i have scary embedded things\000 inside me") { +update request { + Tmp-String-8 := "%{string:%{Tmp-Octets-0}}" +} + +if (&Tmp-String-8 != "i have scary embedded things\000 inside me") { test_fail } @@ -34,7 +38,11 @@ if (&Tmp-String-0 != "i have scary embedded things\000 inside me") { test_fail } -if ("%{string:Tmp-Octets-1}" != "0x01\0010x07\0070x0A\n0x0D\r\"\"0xb0\260°") { +update request { + Tmp-String-8 := "%{string:%{Tmp-Octets-1}}" +} + +if (&Tmp-String-8 != "0x01\0010x07\0070x0A\n0x0D\r\"\"0xb0\260°") { test_fail }