logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: cf39918b4a57c4f8c8e4467b13b8b1c2ae73cf57
parent e001c87696f04e2d77358e8a979d9cf14eefa91c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  1 Mar 2022 14:48:11 +0100

test-bin/tee: NetBSD writeslash message

Diffstat:

Mtest-bin/tee6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test-bin/tee b/test-bin/tee @@ -58,7 +58,11 @@ nullinput_body() { atf_test_case writeslash writeslash_body() { # shellcheck disable=SC1112 - atf_check -s exit:1 -e 'inline:Error opening ‘/’: Is a directory\n' ../bin/tee / <inputs/all_bytes + if [ "$(uname -s)" = "NetBSD" ]; then + atf_check -s exit:1 -e 'inline:Error opening ‘/’: File exists\n' ../bin/tee / <inputs/all_bytes + else + atf_check -s exit:1 -e 'inline:Error opening ‘/’: Is a directory\n' ../bin/tee / <inputs/all_bytes + fi } atf_test_case enoent