logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: aa316fac15f9a3acffc34c8be0ef3c57c05242a3
parent 518becfee61d96d94ad391a5e7950b9d3012cfe8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 11 May 2022 11:49:43 +0200

test-bin/lolcat: Free/Net-BSD /dev/null read error

Diffstat:

Mtest-bin/lolcat13++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/test-bin/lolcat b/test-bin/lolcat @@ -16,9 +16,16 @@ alldashinput_body() { atf_test_case devnull devnull_body() { - atf_check -o 'inline:' ../bin/lolcat /dev/null - atf_check -o 'inline:' ../bin/lolcat </dev/null - atf_check -o 'inline:' ../bin/lolcat - </dev/null + if [ "$(uname -s)" = "FreeBSD" ] || [ "$(uname -s)" = "NetBSD" ]; then + # FIXME + atf_check -s exit:1 -e 'inline:\nRead error: Inappropriate ioctl for device\n' -o 'inline:' ../bin/lolcat /dev/null + atf_check -s exit:1 -e 'inline:\nRead error: Inappropriate ioctl for device\n' -o 'inline:' ../bin/lolcat </dev/null + atf_check -s exit:1 -e 'inline:\nRead error: Inappropriate ioctl for device\n' -o 'inline:' ../bin/lolcat - </dev/null + else + atf_check -o 'inline:' ../bin/lolcat /dev/null + atf_check -o 'inline:' ../bin/lolcat </dev/null + atf_check -o 'inline:' ../bin/lolcat - </dev/null + fi } atf_test_case noperm cleanup