sponge(1): fix my tests
Reviewed by: kevans
This commit is contained in:
parent
95639a80ef
commit
8d4a7aab40
@ -712,6 +712,8 @@
|
||||
..
|
||||
soelim
|
||||
..
|
||||
sponge
|
||||
..
|
||||
stat
|
||||
..
|
||||
tail
|
||||
|
@ -148,6 +148,7 @@ SUBDIR= alias \
|
||||
soelim \
|
||||
sort \
|
||||
split \
|
||||
sponge \
|
||||
stat \
|
||||
stdbuf \
|
||||
strings \
|
||||
|
@ -1,9 +1,9 @@
|
||||
# $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>
|
||||
|
@ -33,7 +33,7 @@ simple_body() {
|
||||
printf 'a\nd\ne\n' >| y
|
||||
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
|
||||
echo "x and y differ, but they should be equal"
|
||||
|
Loading…
Reference in New Issue
Block a user