]> Cypherpunks repositories - gostls13.git/commitdiff
test/fixedbugs/bug243.go: instead of closing stdout,
authorVinu Rajashekhar <vinutheraj@gmail.com>
Mon, 12 Jul 2010 20:17:32 +0000 (13:17 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 12 Jul 2010 20:17:32 +0000 (13:17 -0700)
remove the print statements.

This change is because of the port of gccgo to RTEMS.
These tests use the GCC DejaGNU framework. In some cases,
the tests need to be run on qemu where the status code
cannot be sent back to DejaGNU, so it prints the exit status
by putting a wrapper around the exit and abort calls.

This testcase closes the stdout, and hence prohibits DejaGNU
from knowing the status in such cases, and causes this test
to be wrongly declared as a failure.

R=rsc, iant
CC=golang-dev
https://golang.org/cl/1792042

test/fixedbugs/bug243.go

index 30dbc4ed4d36695c70ca2dc472bcd008eb001e94..690e0a1bc25598fae773ea8a8e229391525522b4 100644 (file)
@@ -10,20 +10,16 @@ package main
 import (
        "fmt"
        "net"
-       "os"
 )
 
 func main() {
-       os.Stdout.Close()
        var listen, _ = net.Listen("tcp", "127.0.0.1:0")
 
        go func() {
                for {
                        var conn, _ = listen.Accept()
-                       fmt.Println("[SERVER] ", conn)
                }
        }()
 
        var conn, _ = net.Dial("tcp", "", listen.Addr().String())
-       fmt.Println("[CLIENT] ", conn)
 }