summaryrefslogtreecommitdiff
path: root/testsuite/printf.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/printf.tests')
-rwxr-xr-xtestsuite/printf.tests6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/printf.tests b/testsuite/printf.tests
index 18f25e3..d6b60fb 100755
--- a/testsuite/printf.tests
+++ b/testsuite/printf.tests
@@ -24,4 +24,10 @@ testing "printf repeatedly use pattern for each argv" \
"foo\n$HOME\n" \
"" ""
+# Why ()s are necessary I have no idea...
+testing "printf aborts on bare %" \
+ "(${bb}printf '%' a b c) 2>&1; echo \$?" \
+ "printf: invalid directive '%'\n""1\n" \
+ "" ""
+
exit $FAILCOUNT