libgo: use Windows line endings in testwinsignal
This commit is contained in:
parent
01b2864757
commit
39ed6a88c7
38
libgo/go/runtime/testdata/testwinsignal/main.go
vendored
38
libgo/go/runtime/testdata/testwinsignal/main.go
vendored
@ -1,19 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c)
|
||||
|
||||
fmt.Println("ready")
|
||||
sig := <-c
|
||||
|
||||
time.Sleep(time.Second)
|
||||
fmt.Println(sig)
|
||||
}
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"os/signal"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
c := make(chan os.Signal, 1)
|
||||
signal.Notify(c)
|
||||
|
||||
fmt.Println("ready")
|
||||
sig := <-c
|
||||
|
||||
time.Sleep(time.Second)
|
||||
fmt.Println(sig)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user