OSDN Git Service

Update Go library to last weekly.
[pf3gnuchains/gcc-fork.git] / libgo / go / time / sleep_test.go
index 9b59767..9d16c52 100644 (file)
@@ -7,7 +7,6 @@ package time_test
 import (
        "fmt"
        "os"
-       "syscall"
        "testing"
        "sort"
        . "time"
@@ -17,7 +16,7 @@ func TestSleep(t *testing.T) {
        const delay = int64(100e6)
        go func() {
                Sleep(delay / 2)
-               syscall.Kill(os.Getpid(), syscall.SIGCHLD)
+               Interrupt()
        }()
        start := Nanoseconds()
        Sleep(delay)