From: Dmitriy Vyukov Date: Tue, 21 Jan 2014 06:44:08 +0000 (+0400) Subject: runtime: fix test on windows X-Git-Tag: go1.3beta1~927 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d76a1e593c221e147fd5d51c98f068a60bb8f74a;p=gostls13.git runtime: fix test on windows The test prints an excessive \n when /dev/null is not present. R=golang-codereviews, bradfitz, dave CC=golang-codereviews https://golang.org/cl/54890043 --- diff --git a/src/pkg/runtime/proc_test.go b/src/pkg/runtime/proc_test.go index d3f1f8bb1c..fb9c76c3a7 100644 --- a/src/pkg/runtime/proc_test.go +++ b/src/pkg/runtime/proc_test.go @@ -268,7 +268,7 @@ func main() { if os.IsNotExist(err) { // This test tests what it is intended to test only if writes are fast. // If there is no /dev/null, we just don't execute the test. - fmt.Println("OK\n") + fmt.Println("OK") return } if err != nil {