]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.18] syscall: relax output check in TestGroupCleanupUserNamespace
authorBryan C. Mills <bcmills@google.com>
Thu, 31 Mar 2022 20:51:32 +0000 (16:51 -0400)
committerDmitri Shuralyov <dmitshur@golang.org>
Wed, 4 May 2022 15:44:30 +0000 (15:44 +0000)
commita286c7dd79ee888410f31b1688d4159ba4e674b6
treea36308da5c720a1d0039159751b06b981b6fe7f1
parentc6688b58eadae82c13a17825ecff23d435fae8dc
[release-branch.go1.18] syscall: relax output check in TestGroupCleanupUserNamespace

“If you have a procedure with ten parameters, you probably missed some.”
― attr. Alan J. Perlis

I argue that the same is true for hard-coded special cases.

In TestGroupCleanupUserNamespace, instead of a curated list of strings
observed in the wild we now check for a prefix, as was done for
TestGroupCleanup in CL 24670.

Updates #52088.
Fixes #52149.

Change-Id: I59c5b0c048113e306996c0f8247e09c714d2423a
Reviewed-on: https://go-review.googlesource.com/c/go/+/397316
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
(cherry picked from commit 434b2a5d0dbdfdce6327beb06ca03c02b3fd2785)
Reviewed-on: https://go-review.googlesource.com/c/go/+/398234
Reviewed-by: Russ Cox <rsc@golang.org>
src/syscall/exec_linux_test.go