summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2016-05-01 08:51:48 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2016-05-01 08:51:48 +0000
commitdeb4f271606a18dbccb1330bc7db65469cdc3b20 (patch)
tree49033a1a4467cee276cec4dddfc6a04c99c08104
parentf8ac8c061f3eddf0d5e503095aa14248656e5e15 (diff)
Test for default (RTF file with an unrecognized character set).
-rw-r--r--regress/usr.bin/file/Makefile5
-rw-r--r--regress/usr.bin/file/t31.in1
-rw-r--r--regress/usr.bin/file/t31.out1
3 files changed, 5 insertions, 2 deletions
diff --git a/regress/usr.bin/file/Makefile b/regress/usr.bin/file/Makefile
index a28f004b6f4..05856c56f9b 100644
--- a/regress/usr.bin/file/Makefile
+++ b/regress/usr.bin/file/Makefile
@@ -1,9 +1,10 @@
-# $OpenBSD: Makefile,v 1.1 2006/06/02 01:07:44 ian Exp $
+# $OpenBSD: Makefile,v 1.2 2016/05/01 08:51:47 nicm Exp $
FILE=file
# temporarily excluded - t23
-REGRESS_TARGETS=t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t15 t17 t18 t20 t21 t22 t30
+REGRESS_TARGETS=t0 t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t15 t17 t18 t20 t21 t22 t30 \
+ t31
# .in: input file
# .out: desired result
diff --git a/regress/usr.bin/file/t31.in b/regress/usr.bin/file/t31.in
new file mode 100644
index 00000000000..a6089f49bf0
--- /dev/null
+++ b/regress/usr.bin/file/t31.in
@@ -0,0 +1 @@
+{\rtf1foo
diff --git a/regress/usr.bin/file/t31.out b/regress/usr.bin/file/t31.out
new file mode 100644
index 00000000000..66e1498028b
--- /dev/null
+++ b/regress/usr.bin/file/t31.out
@@ -0,0 +1 @@
+t31.in: Rich Text Format data, version 1, unknown character set