]> Cypherpunks repositories - gostls13.git/commitdiff
os/signal: make test logs reflect reality
authorJoel Sing <jsing@google.com>
Mon, 7 Oct 2013 16:04:20 +0000 (09:04 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 7 Oct 2013 16:04:20 +0000 (09:04 -0700)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/14470043

src/pkg/os/signal/signal_test.go

index 5fc8065fe884f8af5568308ca6a64e0fa8f32d6d..741f2a0edfcf49f63e1b7ae38819035328b78b87 100644 (file)
@@ -36,8 +36,8 @@ func TestSignal(t *testing.T) {
        Notify(c, syscall.SIGHUP)
        defer Stop(c)
 
-       t.Logf("sighup...")
        // Send this process a SIGHUP
+       t.Logf("sighup...")
        syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
        waitSig(t, c, syscall.SIGHUP)
 
@@ -45,18 +45,18 @@ func TestSignal(t *testing.T) {
        c1 := make(chan os.Signal, 1)
        Notify(c1)
 
-       t.Logf("sigwinch...")
        // Send this process a SIGWINCH
+       t.Logf("sigwinch...")
        syscall.Kill(syscall.Getpid(), syscall.SIGWINCH)
        waitSig(t, c1, syscall.SIGWINCH)
 
        // Send two more SIGHUPs, to make sure that
        // they get delivered on c1 and that not reading
        // from c does not block everything.
-       t.Logf("sigwinch...")
+       t.Logf("sighup...")
        syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
        waitSig(t, c1, syscall.SIGHUP)
-       t.Logf("sigwinch...")
+       t.Logf("sighup...")
        syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
        waitSig(t, c1, syscall.SIGHUP)