]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.11] runtime: skip TestLockOSThreadAvoidsStatePropagation if one...
authorMichael Anthony Knyszek <mknyszek@google.com>
Thu, 20 Dec 2018 20:21:45 +0000 (20:21 +0000)
committerAndrew Bonventre <andybons@golang.org>
Thu, 14 Mar 2019 19:33:12 +0000 (19:33 +0000)
commit6e6462315b628bc364bbdf68da64322763f17b81
tree76b53a2906995f0c41cad70480d08c0a3e08062e
parent6a7a8ba07fb22b006fb1af4c9413d20f0257a32e
[release-branch.go1.11] runtime: skip TestLockOSThreadAvoidsStatePropagation if one can't unshare

This change splits a testprog out of TestLockOSThreadExit and makes it
its own test. Then, this change makes the testprog exit prematurely with
a special message if unshare fails with EPERM because not all of the
builders allow the user to call the unshare syscall.

Also, do some minor cleanup on the TestLockOSThread* tests.

Fixes #29366.

Change-Id: Id8a9f6c4b16e26af92ed2916b90b0249ba226dbe
Reviewed-on: https://go-review.googlesource.com/c/155437
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
(cherry picked from commit 429bae715876c69853bb63db1733f580e293c916)
Reviewed-on: https://go-review.googlesource.com/c/go/+/167707
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
src/runtime/proc_test.go
src/runtime/testdata/testprog/lockosthread.go
src/runtime/testdata/testprog/syscalls.go
src/runtime/testdata/testprog/syscalls_linux.go [new file with mode: 0644]