summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-05-16 23:12:28 -0700
committerIan Lance Taylor <iant@golang.org>2009-05-16 23:12:28 -0700
commita09ba0817a20c6bd5fd987e0815a8aefdff6708e (patch)
treee114c5dc77cb5059ea5fd29631ceb0522d9ab097
parent11896e45333720de33d90c15ebc9a718072b6459 (diff)
downloadgolang-a09ba0817a20c6bd5fd987e0815a8aefdff6708e.tar.gz
Don't bother to import "os" just so that we can call
os.Exit(0) at the end of main. R=rsc DELTA=6 (0 added, 6 deleted, 0 changed) OCL=28967 CL=28969
-rw-r--r--test/235.go3
-rw-r--r--test/chan/sieve.go3
2 files changed, 0 insertions, 6 deletions
diff --git a/test/235.go b/test/235.go
index b8621cc7e..fe3024c61 100644
--- a/test/235.go
+++ b/test/235.go
@@ -6,8 +6,6 @@
package main
-import "os"
-
type T chan uint64;
func M(f uint64) (in, out T) {
@@ -67,5 +65,4 @@ func main() {
x = min(xs);
if x != OUT[i] { panic("bad: ", x, " should be ", OUT[i]); }
}
- os.Exit(0);
}
diff --git a/test/chan/sieve.go b/test/chan/sieve.go
index 49f1c105e..b47615f2f 100644
--- a/test/chan/sieve.go
+++ b/test/chan/sieve.go
@@ -9,8 +9,6 @@
package main
-import "os"
-
// Send the sequence 2, 3, 4, ... to channel 'ch'.
func Generate(ch chan<- int) {
for i := 2; ; i++ {
@@ -49,5 +47,4 @@ func main() {
for i := 0; i < len(a); i++ {
if x := <-primes; x != a[i] { panic(x, " != ", a[i]) }
}
- os.Exit(0);
}