From: Alan T. DeKok Date: Wed, 16 Nov 2022 15:07:35 +0000 (-0500) Subject: use test_fail instead of "fail" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3857ba87bbd6913dd3b2f1ba7e29e36ad54b3356;p=thirdparty%2Ffreeradius-server.git use test_fail instead of "fail" --- diff --git a/src/tests/keywords/update-attr-ref-null b/src/tests/keywords/update-attr-ref-null index 24c5c6a02c4..7bae6f40ccd 100644 --- a/src/tests/keywords/update-attr-ref-null +++ b/src/tests/keywords/update-attr-ref-null @@ -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 diff --git a/src/tests/keywords/update-list-null-rhs b/src/tests/keywords/update-list-null-rhs index 9b11dc3e8a3..05f95525b15 100644 --- a/src/tests/keywords/update-list-null-rhs +++ b/src/tests/keywords/update-list-null-rhs @@ -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 diff --git a/src/tests/keywords/update-null-value-assign b/src/tests/keywords/update-null-value-assign index 9a0a0430e60..4647e6d7955 100644 --- a/src/tests/keywords/update-null-value-assign +++ b/src/tests/keywords/update-null-value-assign @@ -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