Fix cmp(1) tests for "special" mode.
Test failures don't seem to propagate up if atf_check is run in a pipeline. Thus, the tests continued to pass despite the bug reverted in r343245. MFC after: 1 week
This commit is contained in:
parent
33a28349a7
commit
109b5c109c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343247
@ -31,11 +31,10 @@ special_head() {
|
|||||||
special_body() {
|
special_body() {
|
||||||
echo 0123456789abcdef > a
|
echo 0123456789abcdef > a
|
||||||
echo 0123456789abcdeg > b
|
echo 0123456789abcdeg > b
|
||||||
cat a | atf_check -s exit:0 cmp a -
|
atf_check -s exit:0 -o empty -e empty -x "cat a | cmp a -"
|
||||||
cat a | atf_check -s exit:0 cmp - a
|
atf_check -s exit:0 -o empty -e empty -x "cat a | cmp - a"
|
||||||
cat b | atf_check -s not-exit:0 cmp a -
|
atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp a -"
|
||||||
cat b | atf_check -s not-exit:0 cmp - a
|
atf_check -s exit:1 -o not-empty -e empty -x "cat b | cmp - a"
|
||||||
true
|
|
||||||
}
|
}
|
||||||
|
|
||||||
atf_test_case symlink
|
atf_test_case symlink
|
||||||
|
Loading…
Reference in New Issue
Block a user