]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
use test_fail instead of "fail"
authorAlan T. DeKok <aland@freeradius.org>
Wed, 16 Nov 2022 15:07:35 +0000 (10:07 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 17 Nov 2022 12:34:54 +0000 (07:34 -0500)
src/tests/keywords/update-attr-ref-null
src/tests/keywords/update-list-null-rhs
src/tests/keywords/update-null-value-assign

index 24c5c6a02c49d62805c766746c1b4c631364e1a1..7bae6f40ccd04d10f43f7740760b50b6a14d66ad 100644 (file)
@@ -15,7 +15,7 @@ if ("%{Tmp-String-0[#]}" != 2) {
 }
 
 if (&Tmp-String-0[0] != 'foo') {
-       fail
+       test_fail
 }
 
 # Delete an attribute by assigning a non-existent attribute to it
@@ -25,16 +25,16 @@ update {
 
 # Should only remove 'bar'
 if (&Tmp-String-0[0] != 'foo') {
-       fail
+       test_fail
 }
 
 # Nothing should exist for this attribute.
 if (&Tmp-String-0[1]) {
-       fail
+       test_fail
 }
 
 if (&Tmp-String-0[2]) {
-       fail
+       test_fail
 }
 
 update {
@@ -43,7 +43,7 @@ update {
 
 # All instances should be removed
 if (&Tmp-String-0) {
-       fail
+       test_fail
 }
 
 success
index 9b11dc3e8a3d495661361b1c9bd2b48fbfec57e0..05f95525b152db22bcaf629dd4b664b445080d71 100644 (file)
@@ -11,7 +11,7 @@ update request {
 }
 
 if (&Tmp-String-0[0] != 'foo') {
-       fail
+       test_fail
 }
 
 # Now delete the LHS by assigning the control list to it (which is empty)
@@ -20,7 +20,7 @@ update {
 }
 
 if (&Tmp-String-0 || &Tmp-String-1) {
-       fail
+       test_fail
 }
 
 success
index 9a0a0430e6045fc9a1d0a8e0b04a11deea4a7406..4647e6d7955cd893c18704361a40e5b039152834 100644 (file)
@@ -10,7 +10,7 @@ update request {
        &Tmp-Octets-0 := "%{Tmp-Octets-1}"
 }
 if (&Tmp-Integer-0) {
-       fail
+       test_fail
 }
 
 #
@@ -20,10 +20,10 @@ update request {
        &Tmp-String-0 := "%{Reply-Message}"
 }
 if (!&Tmp-String-0) {
-       fail
+       test_fail
 }
 if (&Tmp-String-0 != '') {
-       fail
+       test_fail
 }
 
 #
@@ -33,7 +33,7 @@ update request {
        &Tmp-Octets-0 := "%{Reply-Message}"
 }
 if (&Tmp-Octets-0 != "") {
-       fail
+       test_fail
 }
 
 success