]> Cypherpunks repositories - gostls13.git/commitdiff
misc/cgo/stdio: reenable tests
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2015 03:51:03 +0000 (22:51 -0500)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2015 21:24:30 +0000 (21:24 +0000)
The build tags are necessary to keep "go build" in that directory
building only stdio.go, but we have to arrange for test/run.go to
treat them as satisfied.

Fixes #12625.

Change-Id: Iec0cb2fdc2c9b24a4e0530be25e940aa0cc9552e
Reviewed-on: https://go-review.googlesource.com/17454
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
misc/cgo/life/main.go
misc/cgo/stdio/chain.go
misc/cgo/stdio/fib.go
misc/cgo/stdio/hello.go
test/run.go

index 725e10f76c262b3ce11a78bb7b92ec6c064f262d..c17cd6c92c0722c85a1fbb9858180d784a42c877 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build ignore
+// +build test_run
 
 // Run the game of life in C using Go for parallelization.
 
index a55cefa40c20dbb98388b7ca8262ef8b106303c3..1256133e2fa99e94b8703cc7c828becf2c220d4b 100644 (file)
@@ -4,16 +4,17 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build ignore
+// +build test_run
 
 // Pass numbers along a chain of threads.
 
 package main
 
 import (
-       "../stdio"
        "runtime"
        "strconv"
+
+       "../stdio"
 )
 
 const N = 10
index 981ffeb9abd5b9579c96dd829ae517969901edc5..eb43cf5daf496ac8434ad4113a6a689dd3d03ae0 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build ignore
+// +build test_run
 
 // Compute Fibonacci numbers with two goroutines
 // that pass integers back and forth.  No actual
 package main
 
 import (
-       "../stdio"
        "runtime"
        "strconv"
+
+       "../stdio"
 )
 
 func fibber(c, out chan int64, i int64) {
index 9cfeefbba701b8b90da893ea5ba2018054166f9f..60c0304e2e4f1f0321657f03cd4a3c822faf593a 100644 (file)
@@ -4,7 +4,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// +build ignore
+// +build test_run
 
 package main
 
index d3f58b77829edcf0909ec974cf449e3b983e9f5e..52230efc4291fdcbf91ca9b8fd19e6e48e90c037 100644 (file)
@@ -400,6 +400,10 @@ func (ctxt *context) match(name string) bool {
                return true
        }
 
+       if name == "test_run" {
+               return true
+       }
+
        return false
 }