summaryrefslogtreecommitdiff
path: root/tests/misc/printf
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/printf')
-rwxr-xr-xtests/misc/printf3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/misc/printf b/tests/misc/printf
index e02a1328b..8961b4433 100755
--- a/tests/misc/printf
+++ b/tests/misc/printf
@@ -28,6 +28,9 @@ getlimits_
fail=0
+# Verify the 3 methods of specifying "Escape":
+test $("$prog" "\x1b\n\33\n\e\n" | uniq -u) && fail=1
+
# This would fail (by printing the `--') for printf in sh-utils
# and in coreutils 4.5.1.
"$prog" -- 'foo\n' > out || fail=1