]> Cypherpunks repositories - gostls13.git/commitdiff
os/signal: skip the nohup test on darwin when running in tmux.
authorAaron Jacobs <jacobsa@google.com>
Mon, 24 Aug 2015 22:53:42 +0000 (08:53 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 25 Aug 2015 00:14:24 +0000 (00:14 +0000)
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 <bradfitz@golang.org>
src/os/signal/signal_test.go

index a71633c8907b98d9a624e04fdb3b2f9ca0b10c8c..7942e78752a28f548bd4bd3e07a0fa7c96caac75 100644 (file)
@@ -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 {