sponge(1): fix my tests

Reviewed by:	kevans
This commit is contained in:
Eitan Adler 2017-12-05 04:43:39 +00:00
parent 95639a80ef
commit 8d4a7aab40
4 changed files with 7 additions and 4 deletions

View File

@ -712,6 +712,8 @@
.. ..
soelim soelim
.. ..
sponge
..
stat stat
.. ..
tail tail

View File

@ -148,6 +148,7 @@ SUBDIR= alias \
soelim \ soelim \
sort \ sort \
split \ split \
sponge \
stat \ stat \
stdbuf \ stdbuf \
strings \ strings \

View File

@ -1,9 +1,9 @@
# $FreeBSD$ # $FreeBSD$
PACKAGE= ${TESTBASE}/usr.bin/sponge PACKAGE= tests
TESTSDIR= ${TESTSBASE}/usr.bin/sponge/tests TESTSDIR= ${TESTSBASE}/usr.bin/sponge
ATF_TESTS_SH= cp_test ATF_TESTS_SH= sponge_test
.include <bsd.test.mk> .include <bsd.test.mk>

View File

@ -33,7 +33,7 @@ simple_body() {
printf 'a\nd\ne\n' >| y printf 'a\nd\ne\n' >| y
sort x | sponge x sort x | sponge x
atf_check -s exit:0 -o empty -e empty 'sort x | sponge x' atf_check -s exit:0 -o empty -e empty -x 'sort x | sponge x'
if ! cmp -s x y; then if ! cmp -s x y; then
echo "x and y differ, but they should be equal" echo "x and y differ, but they should be equal"