diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2024-10-09 12:08:42 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2024-10-09 12:11:42 +0000 |
| commit | d350e8d795d53dbc58ea428f76355cf5e28f6116 (patch) | |
| tree | 4446401a56c393e1ca4d1198e1b42836ebca074d /usr.bin/cmp/tests | |
| parent | e578fd853a251c04d1eeb55c3aa499f8d0cb7480 (diff) | |
Diffstat (limited to 'usr.bin/cmp/tests')
| -rwxr-xr-x | usr.bin/cmp/tests/cmp_test2.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/cmp/tests/cmp_test2.sh b/usr.bin/cmp/tests/cmp_test2.sh index ca4f6d7cf848..80d2e663875f 100755 --- a/usr.bin/cmp/tests/cmp_test2.sh +++ b/usr.bin/cmp/tests/cmp_test2.sh @@ -31,12 +31,12 @@ special_head() { special_body() { echo 0123456789abcdef > a echo 0123456789abcdeg > b - 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_check -s exit:0 -o empty -e empty cmp a - <a + atf_check -s exit:0 -o empty -e empty cmp - a <a + atf_check -s exit:1 -o not-empty -e empty cmp a - <b + atf_check -s exit:1 -o not-empty -e empty cmp - a <b - atf_check -s exit:0 -o empty -e empty -x "cmp a a <&-" + atf_check -s exit:0 -o empty -e empty cmp a a <&- } atf_test_case symlink @@ -112,9 +112,9 @@ limit_body() # Test special, too. The implementation for link is effectively # identical. - atf_check -s exit:0 -e empty -x "cat a | cmp -sn 4 b -" - atf_check -s exit:0 -e empty -x "cat a | cmp -sn 3 b -" - atf_check -s exit:1 -o ignore -x "cat a | cmp -sn 5 b -" + atf_check -s exit:0 -e empty cmp -sn 4 b - <a + atf_check -s exit:0 -e empty cmp -sn 3 b - <a + atf_check -s exit:1 -o ignore cmp -sn 5 b - <a } atf_test_case bflag |
