logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 8d5bac7bf0613b2b14dbe807165908a881778642
parent eaf123c2451e7ad2b5da7b12561a468d200172ac
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue,  1 Mar 2022 20:26:21 +0100

test-bin/errno: Fix

Diffstat:

Mtest-bin/errno5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/test-bin/errno b/test-bin/errno @@ -1,7 +1,6 @@ #!/usr/bin/env atf-sh atf_test_case simple simple_body() { - atf_check -o "inline:Success\n" ../bin/errno 0 atf_check -o "inline:Operation not permitted\n" ../bin/errno 1 } @@ -26,10 +25,10 @@ atf_test_case einval einval_body() { if test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h then - atf_expect_fail "glibc not setting errno for strerror" + atf_check -s exit:0 -o "inline:Unknown error -1\n" ../bin/errno -1 fi - atf_check -s exit:1 -o "inline:Unknown error -1\n" ../bin/errno -1 + atf_check -s exit:1 -e "inline:errno: strerror: Invalid argument\n" ../bin/errno -1 } atf_init_test_cases() {