From: Alan T. DeKok Date: Tue, 27 Jun 2017 13:59:08 +0000 (-0400) Subject: print out more information on failure X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=740d0878287660305791e5c42a2145a1da2389fb;p=thirdparty%2Ffreeradius-server.git print out more information on failure --- diff --git a/src/tests/keywords/redundant-redundant b/src/tests/keywords/redundant-redundant index 294f53e49b1..bb802708d2a 100644 --- a/src/tests/keywords/redundant-redundant +++ b/src/tests/keywords/redundant-redundant @@ -40,30 +40,37 @@ redundant { ok } +if (!ok) { + update reply { + Filter-Id := "did not return OK" + } + return +} + if (&Tmp-Integer-2 != 1) { update reply { - Filter-Id += 'Fail 3a' + Filter-Id += "Fail 3a - expected 1 got %{Tmp-Integer-2}" } return } if (&Tmp-Integer-3 != 1) { update reply { - Filter-Id += 'Fail 3b' + Filter-Id += "'Fail 3b - expected 1 got %{Tmp-Integer-3}" } return } if (&Tmp-Integer-4 != 1) { update reply { - Filter-Id += 'Fail 3c' + Filter-Id += "Fail 3c - expected 1 got %{Tmp-Integer-4}" } return } if (&Tmp-Integer-5 != 1) { update reply { - Filter-Id += 'Fail 3d' + Filter-Id += "Fail 3d - expected 1 got %{Tmp-Integer-5}" } return }