summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/switch-xlat-error
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/keywords/switch-xlat-error')
-rw-r--r--src/tests/keywords/switch-xlat-error17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/keywords/switch-xlat-error b/src/tests/keywords/switch-xlat-error
new file mode 100644
index 0000000..d03f6d3
--- /dev/null
+++ b/src/tests/keywords/switch-xlat-error
@@ -0,0 +1,17 @@
+#
+# PRE: switch
+#
+switch &User-Name {
+ case "%{no-such-module:bob}" { # ERROR
+ update reply {
+ Filter-Id := "fail"
+ }
+ }
+
+ case {
+ update reply {
+ Filter-Id := "default"
+ }
+ }
+
+}