aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cmp/tests
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2021-09-23 05:43:32 +0000
committerKyle Evans <kevans@FreeBSD.org>2021-09-29 18:03:34 +0000
commit8d546b6832eea031f95f30eaec3232ec1256a281 (patch)
tree3d725bdddf93f4fe384ff04b9a8e1ada2ba3ab4d /usr.bin/cmp/tests
parent4e380e8474609875c4cf5277b3755ac29079a8b5 (diff)
Diffstat (limited to 'usr.bin/cmp/tests')
-rwxr-xr-xusr.bin/cmp/tests/cmp_test2.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/cmp/tests/cmp_test2.sh b/usr.bin/cmp/tests/cmp_test2.sh
index c513984daf8b..893ee59076c3 100755
--- a/usr.bin/cmp/tests/cmp_test2.sh
+++ b/usr.bin/cmp/tests/cmp_test2.sh
@@ -71,8 +71,13 @@ pr252542_body()
{
echo -n '1234567890' > a
echo -n 'abc567890' > b
+ echo -n 'xbc567890' > c
atf_check -s exit:0 cmp -s a b 4 3
+ atf_check -s exit:0 cmp -i 4:3 -s a b
+ atf_check -s exit:0 cmp -i 1 -s b c
atf_check -s exit:1 -o ignore cmp -z a b 4 3
+ atf_check -s exit:1 -o ignore cmp -i 4:3 -z a b
+ atf_check -s exit:1 -o ignore cmp -i 1 -z a b
}
atf_test_case skipsuff