From 53dc8a8e31cca47a9e0c54e502281df512a41ff0 Mon Sep 17 00:00:00 2001 From: Marcello Sylvester Bauer Date: Wed, 8 Sep 2021 09:47:26 +0200 Subject: [PATCH] interp_test: Check if $GID is set Signed-off-by: Marcello Sylvester Bauer --- interp/interp_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/interp/interp_test.go b/interp/interp_test.go index 92d2441a7..fc0978516 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -2756,6 +2756,10 @@ var runTestsUnix = []runTest{ `mkdir a; chmod 0001 a; cd a && test $UID -ne 0`, "exit status 1 #JUSTERR", }, + { + `[[ -z $GID ]] && echo "GID not set"`, + "exit status 1 #JUSTERR #IGNORE", + }, // Unix-y PATH {