From: Alan T. DeKok Date: Wed, 16 Jul 2025 19:21:42 +0000 (-0400) Subject: add test of "last loop returns the rcode" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c5ebe0303f44f162b00921896600283978f0879;p=thirdparty%2Ffreeradius-server.git add test of "last loop returns the rcode" --- diff --git a/src/tests/keywords/foreach-rcode b/src/tests/keywords/foreach-rcode new file mode 100644 index 0000000000..a70047be6c --- /dev/null +++ b/src/tests/keywords/foreach-rcode @@ -0,0 +1,17 @@ +NAS-Port := {1, 2, 3, 4 } + +noop + +foreach thing (NAS-Port) { + if (thing == 4) { + updated + } else { + ok + } +} + +if (!updated) { + test_fail +} + +success