From: Aaron Jacobs Date: Mon, 24 Aug 2015 22:53:42 +0000 (+1000) Subject: os/signal: skip the nohup test on darwin when running in tmux. X-Git-Tag: go1.6beta1~1282 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=acb47657096a728d10b33f2949b5a52ef5226b9d;p=gostls13.git 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 --- diff --git a/src/os/signal/signal_test.go b/src/os/signal/signal_test.go index a71633c890..7942e78752 100644 --- a/src/os/signal/signal_test.go +++ b/src/os/signal/signal_test.go @@ -255,6 +255,12 @@ func TestNohup(t *testing.T) { Stop(c) + // Skip the nohup test below when running in tmux on darwin, since nohup + // doesn't work correctly there. See issue #5135. + if runtime.GOOS == "darwin" && os.Getenv("TMUX") != "" { + t.Skip("Skipping nohup test due to running in tmux on darwin") + } + // Again, this time with nohup, assuming we can find it. _, err := os.Stat("/usr/bin/nohup") if err != nil {