]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
show the line number where the tests failed
authorAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2018 15:56:34 +0000 (10:56 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 30 Jan 2018 15:56:34 +0000 (10:56 -0500)
src/tests/modules/unit_test_module.conf

index b11863af6126643bfdc00f9badbe8214c7f164c5..2bfdb3a906f9205c3171789ac0e2d63a78c0adb0 100644 (file)
@@ -49,14 +49,13 @@ server default {
 policy {
        test_pass {
                update control {
-                       &Tmp-String-8 := "%{expr:%{%{control:Tmp-String-8}:-0} + 1}"
                        &Auth-Type := Accept
                }
        }
 
        test_fail {
                update reply {
-                       &Reply-Message := "fail %{%{control:Tmp-String-8}:-0}"
+                       &Reply-Message += "Failure in test at line %{interpreter:..line}"
                }
                reject
        }