]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add test_fail
authorAlan T. DeKok <aland@freeradius.org>
Wed, 13 Sep 2017 18:33:58 +0000 (14:33 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 13 Sep 2017 19:49:50 +0000 (15:49 -0400)
which shows the line number of the block which called the
test_fail policy

src/tests/keywords/unit_test_module.conf

index dd73d94b897a0299bda5e6a01ffa4aa5a025df34..7f342a3b6463c67f6688d299a460ae5883fb31a9 100644 (file)
@@ -89,6 +89,12 @@ policy {
                        }
                }
        }
+
+       test_fail {
+               update reply {
+                       Filter-Id += "Failure in test at line %{interpreter:..line}"
+               }
+       }
 }
 
 instantiate {