]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
run only if there's regex enabled
authorAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 13:39:59 +0000 (08:39 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 5 Dec 2021 13:39:59 +0000 (08:39 -0500)
src/tests/keywords/if-failed-xlat

index b72fc91d8922e48236ba0108f45b9cf479e4c8b0..5877bdc69fce47ce36060e6854d26c11d5b88350 100644 (file)
@@ -2,6 +2,8 @@
 #  PRE: if
 #
 
+if (('${feature.regex-pcre}' == 'yes') || ('${feature.regex-pcre2}' == 'yes')) {
+
 # Check failure when no previous capture - named group
 # but a failed regex is equivalent to an empty string
 if ("%{regex:foo}" != "") {
@@ -11,5 +13,6 @@ if ("%{regex:foo}" != "") {
 if (&Module-Failure-Message[*] != "No previous named regex capture group") {
        test_fail
 }
+}
 
 success