summaryrefslogtreecommitdiff
path: root/test/gc2.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2014-05-20 12:10:19 -0400
committerRuss Cox <rsc@golang.org>2014-05-20 12:10:19 -0400
commit098ea4458409e3dcdd22fe8d8bf60458c77bff92 (patch)
tree6fe56f650994801a51db4a1afde9cbc13fcd796f /test/gc2.go
parent20b83c2f8fee714eca0e3a80dbeebb4da8a377f6 (diff)
downloadgo-098ea4458409e3dcdd22fe8d8bf60458c77bff92.tar.gz
build: make nacl pass
Add nacl.bash, the NaCl version of all.bash. It's a separate script because it builds a variant of package syscall with a large zip file embedded in it, containing all the input files needed for tests. Disable various tests new since the last round, mostly the ones using os/exec. Fixes issue 7945. LGTM=dave R=golang-codereviews, remyoudompheng, dave, bradfitz CC=golang-codereviews https://codereview.appspot.com/100590044
Diffstat (limited to 'test/gc2.go')
-rw-r--r--test/gc2.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/gc2.go b/test/gc2.go
index de52a4fbf..561516b8b 100644
--- a/test/gc2.go
+++ b/test/gc2.go
@@ -1,5 +1,7 @@
// run
+// +build !nacl
+
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
@@ -36,7 +38,7 @@ func main() {
}
runtime.ReadMemStats(memstats)
- obj := memstats.HeapObjects - st.HeapObjects
+ obj := int64(memstats.HeapObjects - st.HeapObjects)
if obj > N/5 {
fmt.Println("too many objects left:", obj)
os.Exit(1)