Skip to content

Commit acb4765

Browse files
jacobsabradfitz
authored andcommitted
os/signal: skip the nohup test on darwin when running in tmux.
The nohup command doesn't work in tmux on darwin. Fixes #5135. Change-Id: I1c21073d8bd54b49dd6b0bad86ef088d6d8e7a5f Reviewed-on: https://go-review.googlesource.com/13883 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 8e2d0e1 commit acb4765

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/os/signal/signal_test.go

+6
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,12 @@ func TestNohup(t *testing.T) {
255255

256256
Stop(c)
257257

258+
// Skip the nohup test below when running in tmux on darwin, since nohup
259+
// doesn't work correctly there. See issue #5135.
260+
if runtime.GOOS == "darwin" && os.Getenv("TMUX") != "" {
261+
t.Skip("Skipping nohup test due to running in tmux on darwin")
262+
}
263+
258264
// Again, this time with nohup, assuming we can find it.
259265
_, err := os.Stat("/usr/bin/nohup")
260266
if err != nil {

0 commit comments

Comments
 (0)