aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2019-01-21 03:57:49 +0000
committerMark Johnston <markj@FreeBSD.org>2019-01-21 03:57:49 +0000
commit109b5c109cf9f478fdc37a4e66fb6150ef1649df (patch)
tree62c60384e226574e1494698169ff89d81cf3d10e /usr.bin/cmp
parent33a28349a7f394d364003c68aa806ee87562187d (diff)
Notes
Diffstat (limited to 'usr.bin/cmp')
-rwxr-xr-xusr.bin/cmp/tests/cmp_test2.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cmp/tests/cmp_test2.sh b/usr.bin/cmp/tests/cmp_test2.sh
index 2221e623888a8..938e7f499ee5a 100755
--- a/usr.bin/cmp/tests/cmp_test2.sh
+++ b/usr.bin/cmp/tests/cmp_test2.sh
@@ -31,11 +31,10 @@ special_head() {
special_body() {
echo 0123456789abcdef > a
echo 0123456789abcdeg > b
- cat a | atf_check -s exit:0 cmp a -
- cat a | atf_check -s exit:0 cmp - a
- cat b | atf_check -s not-exit:0 cmp a -
- cat b | atf_check -s not-exit:0 cmp - a
- true
+ atf_check -s exit:0 -o empty -e empty -x "cat a | cmp a -"
+ atf_check -s exit:0 -o empty -e empty -x "cat a | cmp - a"
+ atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp a -"
+ atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp - a"
}
atf_test_case symlink