Skip to content

Commit

Permalink
interp_test: Check if $GID is set
Browse files Browse the repository at this point in the history
Signed-off-by: Marcello Sylvester Bauer <sylv@sylv.io>
  • Loading branch information
sylv-io committed Sep 8, 2021
1 parent f56c8e8 commit 53dc8a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interp/interp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 53dc8a8

Please sign in to comment.