]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
check for existence, not for value
authorAlan T. DeKok <aland@freeradius.org>
Fri, 3 Dec 2021 15:27:20 +0000 (10:27 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 3 Dec 2021 15:33:50 +0000 (10:33 -0500)
src/tests/keywords/update-attr-ref-null

index 2284efe89b7c708e4689eeb2b2c556a9156e08dd..24c5c6a02c49d62805c766746c1b4c631364e1a1 100644 (file)
@@ -10,6 +10,10 @@ update request {
        &control !* ANY
 }
 
+if ("%{Tmp-String-0[#]}" != 2) {
+       test_fail
+}
+
 if (&Tmp-String-0[0] != 'foo') {
        fail
 }
@@ -24,7 +28,8 @@ if (&Tmp-String-0[0] != 'foo') {
        fail
 }
 
-if (&Tmp-String-0[1] != 'baz') {
+# Nothing should exist for this attribute.
+if (&Tmp-String-0[1]) {
        fail
 }