summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-12-04 13:09:03 +0000
committertedu <tedu@openbsd.org>2015-12-04 13:09:03 +0000
commitc0971487e84928824c10f9e14f31ebed3670f70c (patch)
treedbc259c096aa3349cb6c7a3bd295a96effde2a49
parentremove PLEDGE_INET granting when using "getpw" in YP environnment (diff)
downloadwireguard-openbsd-c0971487e84928824c10f9e14f31ebed3670f70c.tar.xz
wireguard-openbsd-c0971487e84928824c10f9e14f31ebed3670f70c.zip
add a test for wc -m
(this may not be the best place for these tests. perhaps they all belong in the regular usr.bin hierarchy. for now, keeping them all together.)
-rw-r--r--regress/misc/utf8/wc.exp1
-rw-r--r--regress/misc/utf8/wc.sh2
2 files changed, 3 insertions, 0 deletions
diff --git a/regress/misc/utf8/wc.exp b/regress/misc/utf8/wc.exp
new file mode 100644
index 00000000000..43084821576
--- /dev/null
+++ b/regress/misc/utf8/wc.exp
@@ -0,0 +1 @@
+ 5
diff --git a/regress/misc/utf8/wc.sh b/regress/misc/utf8/wc.sh
new file mode 100644
index 00000000000..8196714c80c
--- /dev/null
+++ b/regress/misc/utf8/wc.sh
@@ -0,0 +1,2 @@
+echo -n püffy | wc -m > wc.out
+diff wc.exp wc.out