]> Cypherpunks repositories - gostls13.git/commitdiff
drop output from nilptr tests;
authorRuss Cox <rsc@golang.org>
Tue, 10 Nov 2009 07:11:36 +0000 (23:11 -0800)
committerRuss Cox <rsc@golang.org>
Tue, 10 Nov 2009 07:11:36 +0000 (23:11 -0800)
too hard to make it the same everywhere.
still checking for non-zero exit status though.

disable core files while running tests

R=r
http://go/go-review/1026037

13 files changed:
src/run.bash
test/golden.out
test/nilptr/arrayindex.go
test/nilptr/arrayindex1.go
test/nilptr/arraytoslice.go
test/nilptr/arraytoslice1.go
test/nilptr/arraytoslice2.go
test/nilptr/slicearray.go
test/nilptr/structfield.go
test/nilptr/structfield1.go
test/nilptr/structfield2.go
test/nilptr/structfieldaddr.go
test/run

index 9f1947c1dab0badec5da04ef90faf6f20dbb6d6d..c13eb221896fafe0bfb3045137ef926f4da08ffa 100755 (executable)
@@ -5,6 +5,9 @@
 
 set -e
 
+# no core files, please
+ulimit -c 0
+
 xcd() {
        echo
        echo --- cd $1
index a7dcd090a23958d0f673237fdfd12055ab2c9b4e..7a752e0a5ab4b201db79922000b7627bc05a95ff 100644 (file)
@@ -94,66 +94,6 @@ panic PC=xxx
 
 == nilptr/
 
-=========== nilptr/arrayindex.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/arrayindex1.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/arraytoslice.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/arraytoslice1.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/arraytoslice2.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/slicearray.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/structfield.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/structfield1.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/structfield2.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
-=========== nilptr/structfieldaddr.go
-SIGSEGV: segmentation violation
-Faulting address: 0x0
-pc: xxx
-
-
 == fixedbugs/
 
 =========== fixedbugs/bug016.go
index 0bc6bf4a890d88d589ddabf8119e7b6c9b3700c7..c42dedee8144d8814b9a3742fa240aed7e621bce 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index ac72b789d686ef758eb7db83569e49261775ee2a..59126f82d5eb605d5fe0c2cceed28a009d9f80b2 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 07ecfe01f9cf471c6e3e7c29e05603704fd8bd87..4864d6855270ef46cf0eac0a8929b0a82d786695 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 78c0d8538df827df61a4ed2064b8d767f6b9f2e3..1a479dcdb2b8a4dbf067cbb5ddeabce5dc856618 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 52a238eb2986f95d2ad45e5d625a18b8fc52f5b7..0990b899ddab875d2bd94342de52b9106a3b3e35 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index d1d2a25d99b43098eadef7160e27336e48e5a3c8..7a156b5e64c609c0fd877f98da4ae03292627785 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 51da7a9a57c2ffdd76c66bdd93bc286d3c9d6593..22db500d7d1561094f42f118db6a0abaed3d2aa4 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 5390a643d69edbd0bd652a0a7d7b8301ef4d62da..520136805fb6f60d47a4ed484c6be58e402fd457 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index f11e3df67d38c2bdfdc20999454c0e70fff6005f..a0a552c933394dd37e31a9c3aff73bc211b79e26 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 5ac5deeb6b14af272cc8c9af05eb3a1ff823d534..32e9f79315a83597f22943013db3441f59fe6fca 100644 (file)
@@ -1,4 +1,5 @@
-// $G $D/$F.go && $L $F.$A && (! ./$A.out || echo BUG: should fail)
+// $G $D/$F.go && $L $F.$A &&
+//     ((! sh -c ./$A.out) >/dev/null 2>&1 || echo BUG: should fail)
 
 // Copyright 2009 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 43103488146a6d697be507ddf73e6522966bee1c..93382d17ccd70e25943cc2829b5e5887dcde881a 100755 (executable)
--- a/test/run
+++ b/test/run
@@ -42,6 +42,9 @@ TMP2FILE=/tmp/gotest2-$$-$USER
 # on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
 ulimit -v 4000000
 
+# no core files please
+ulimit -c 0
+
 true >pass.out >times.out
 
 for dir in . ken chan interface nilptr fixedbugs bugs