]> Cypherpunks repositories - gostls13.git/commit
syscall: relax output check in TestGroupCleanupUserNamespace
authorBryan C. Mills <bcmills@google.com>
Thu, 31 Mar 2022 20:51:32 +0000 (16:51 -0400)
committerBryan Mills <bcmills@google.com>
Thu, 31 Mar 2022 21:17:08 +0000 (21:17 +0000)
commit434b2a5d0dbdfdce6327beb06ca03c02b3fd2785
treee75658e006dd546aa9db94346fed94cd1f403d3a
parenta84ef500213ef6c2a0e4bfd82253e9fcd28f1f62
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 #16224.
Updates #16303.
Updates #19938.
Updates #34547.
Updates #46752.
Fixes #52088.

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>
src/syscall/exec_linux_test.go