From: Alan T. DeKok Date: Tue, 29 Nov 2022 23:18:35 +0000 (-0500) Subject: if-paircmp uses the old-style conditions X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e67be45293d5ebf051cf36ffdae86319d5d3a76;p=thirdparty%2Ffreeradius-server.git if-paircmp uses the old-style conditions --- diff --git a/src/tests/keywords/all.mk b/src/tests/keywords/all.mk index 0f8b296067f..2c3b9dbeeef 100644 --- a/src/tests/keywords/all.mk +++ b/src/tests/keywords/all.mk @@ -58,7 +58,7 @@ KEYWORD_UPDATE_REWRITE_TESTS := update-all update-array update-delete update-rem # Migration support. Some of the tests don't run under the new # conditions, so we don't run them under the new conditions. # -ifneq "$(findstring ${1}, paircmp)" "" +ifneq "$(findstring ${1}, paircmp if-paircmp)" "" $(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=no -S use_new_conditions=no else ifneq "$(findstring ${1}, comments update-to-edit if-regex-multivalue smash wimax unknown $(KEYWORD_UPDATE_TESTS) vendor_specific vendor_specific.raw xlat-unknown)" "" $(OUTPUT)/${1}: NEW_COND=-S parse_new_conditions=yes -S use_new_conditions=yes diff --git a/src/tests/keywords/if-paircmp b/src/tests/keywords/if-paircmp index 6f8d7668d5a..1a1ede5b405 100644 --- a/src/tests/keywords/if-paircmp +++ b/src/tests/keywords/if-paircmp @@ -10,7 +10,7 @@ # Passing 'yes' causes the test paircmp to return match # Passing 'no' causes the test paircmp to return a non-match # -if (&Test-Paircmp != 'yes') { +if (!(&Test-Paircmp == 'yes')) { test_fail }