logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: d270ca83b129714c7b6168bd0b571b0633272784
parent 0207b4eb7ba7228bd84e24207d2ab1c55a6663af
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  2 Mar 2022 19:16:49 +0100

test-bin/errno: Fix glibc case

Diffstat:

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

diff --git a/test-bin/errno b/test-bin/errno @@ -26,9 +26,9 @@ einval_body() { if test -f /usr/include/features.h && grep -q '#define\W__GLIBC__' /usr/include/features.h then atf_check -s exit:0 -o "inline:Unknown error -1\n" ../bin/errno -1 + else + atf_check -s exit:1 -e "inline:errno: strerror: Invalid argument\n" ../bin/errno -1 fi - - atf_check -s exit:1 -e "inline:errno: strerror: Invalid argument\n" ../bin/errno -1 } atf_init_test_cases() {