]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: fix test on windows
authorDmitriy Vyukov <dvyukov@google.com>
Tue, 21 Jan 2014 06:44:08 +0000 (10:44 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Tue, 21 Jan 2014 06:44:08 +0000 (10:44 +0400)
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

src/pkg/runtime/proc_test.go

index d3f1f8bb1c865c609776673e2aaa3745bbbac9de..fb9c76c3a78cd1d5882eff13b592772e92d9f61a 100644 (file)
@@ -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 {