logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git
commit: 040d02360ac4309b38c8e6b138d9c13220167027
parent 1eb5a9c6620375c6b07a0a477baa225a6397efb8
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Tue, 19 Apr 2022 08:54:15 +0200

test-bin/env: Add test for missing operand on -u flag

Diffstat:

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

diff --git a/test-bin/env b/test-bin/env @@ -26,6 +26,8 @@ uflag_body() { [ "${LD_PRELOAD}" = "libsandbox.so" ] && atf_expect_fail "sandbox (gentoo) interferes with the environment" atf_check -o "inline:FOO=BAR\n" ../bin/env -i FOO=BAR BAR=FOO ../bin/env -u BAR + + atf_check -s not-exit:0 -e "inline:Error: Missing operand for option: '-u'\nenv [-i] [-u key] [key=value ...] [command [args]]\n" ../bin/env -u } atf_test_case devfull