aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/moderrs
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2012-06-08 21:57:36 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2012-06-08 21:57:36 +0000
commitb379932fc0f836f9f3f5ac89ef7f6cd38377dff8 (patch)
tree18db9ddd684d6278a8a49b3850dc7c757c7e8348 /unit-tests/moderrs
parent3e4da6f5b3dfa3b4ff9caabcbc673d721a1a9bf0 (diff)
downloadsrc-b379932fc0f836f9f3f5ac89ef7f6cd38377dff8.tar.gz
src-b379932fc0f836f9f3f5ac89ef7f6cd38377dff8.zip
Notes
Diffstat (limited to 'unit-tests/moderrs')
-rw-r--r--unit-tests/moderrs31
1 files changed, 31 insertions, 0 deletions
diff --git a/unit-tests/moderrs b/unit-tests/moderrs
new file mode 100644
index 000000000000..b8f78ce3836b
--- /dev/null
+++ b/unit-tests/moderrs
@@ -0,0 +1,31 @@
+# $Id: moderrs,v 1.2 2006/05/11 18:53:39 sjg Exp $
+#
+# various modifier error tests
+
+VAR=TheVariable
+# incase we have to change it ;-)
+MOD_UNKN=Z
+MOD_TERM=S,V,v
+MOD_S:= ${MOD_TERM},
+
+all: modunkn modunknV varterm vartermV modtermV
+
+modunkn:
+ @echo "Expect: Unknown modifier 'Z'"
+ @echo "VAR:Z=${VAR:Z}"
+
+modunknV:
+ @echo "Expect: Unknown modifier 'Z'"
+ @echo "VAR:${MOD_UNKN}=${VAR:${MOD_UNKN}}"
+
+varterm:
+ @echo "Expect: Unclosed variable specification for VAR"
+ @echo VAR:S,V,v,=${VAR:S,V,v,
+
+vartermV:
+ @echo "Expect: Unclosed variable specification for VAR"
+ @echo VAR:${MOD_TERM},=${VAR:${MOD_S}
+
+modtermV:
+ @echo "Expect: Unclosed substitution for VAR (, missing)"
+ -@echo "VAR:${MOD_TERM}=${VAR:${MOD_TERM}}"