]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Call string in update sections in the strings test
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Nov 2018 21:59:17 +0000 (16:59 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 8 Nov 2018 21:59:17 +0000 (16:59 -0500)
src/tests/keywords/escape-sequences

index 40c8f0a094e06db6ee17c171049652ba4e2cbad7..81bdf05fd2f3da99d6514b43de6a6f9127e2fdc8 100644 (file)
@@ -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
 }