logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: b5b2501370c212422a542a36e6e849e684c15cfa
parent a9479eff02132795fb498bf868beaf9dd738eaca
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 15 Feb 2022 01:08:11 +0100

test-bin/basename: silence grep

Diffstat:

Mtest-bin/basename2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test-bin/basename b/test-bin/basename @@ -32,7 +32,7 @@ usage_body() { atf_test_case devfull devfull_body() { - grep '#define\W__GLIBC__' /usr/include/features.h && atf_expect_fail "glibc ignoring write errors for puts()" + grep -q '#define\W__GLIBC__' /usr/include/features.h && atf_expect_fail "glibc ignoring write errors for puts()" atf_check -s exit:1 -e 'inline:basename: puts: No space left on device\n' sh -c '../bin/basename >/dev/full' atf_check -s exit:1 -e 'inline:basename: puts: No space left on device\n' sh -c '../bin/basename "/usr/bin" >/dev/full'