diff options
author | Russ Cox <rsc@golang.org> | 2009-11-09 23:11:36 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-11-09 23:11:36 -0800 |
commit | 56827b64e1b45481f3423a72106bf9369d83593d (patch) | |
tree | 471b972d63d558ce8c5a4f1b4666bdb880d80f52 | |
parent | 089e85f7399f6cea5faa0b98809a8a354a25a02a (diff) | |
download | golang-56827b64e1b45481f3423a72106bf9369d83593d.tar.gz |
drop output from nilptr tests;
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
-rwxr-xr-x | src/run.bash | 3 | ||||
-rw-r--r-- | test/golden.out | 60 | ||||
-rw-r--r-- | test/nilptr/arrayindex.go | 3 | ||||
-rw-r--r-- | test/nilptr/arrayindex1.go | 3 | ||||
-rw-r--r-- | test/nilptr/arraytoslice.go | 3 | ||||
-rw-r--r-- | test/nilptr/arraytoslice1.go | 3 | ||||
-rw-r--r-- | test/nilptr/arraytoslice2.go | 3 | ||||
-rw-r--r-- | test/nilptr/slicearray.go | 3 | ||||
-rw-r--r-- | test/nilptr/structfield.go | 3 | ||||
-rw-r--r-- | test/nilptr/structfield1.go | 3 | ||||
-rw-r--r-- | test/nilptr/structfield2.go | 3 | ||||
-rw-r--r-- | test/nilptr/structfieldaddr.go | 3 | ||||
-rwxr-xr-x | test/run | 3 |
13 files changed, 26 insertions, 70 deletions
diff --git a/src/run.bash b/src/run.bash index 9f1947c1d..c13eb2218 100755 --- a/src/run.bash +++ b/src/run.bash @@ -5,6 +5,9 @@ set -e +# no core files, please +ulimit -c 0 + xcd() { echo echo --- cd $1 diff --git a/test/golden.out b/test/golden.out index a7dcd090a..7a752e0a5 100644 --- a/test/golden.out +++ b/test/golden.out @@ -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 diff --git a/test/nilptr/arrayindex.go b/test/nilptr/arrayindex.go index 0bc6bf4a8..c42dedee8 100644 --- a/test/nilptr/arrayindex.go +++ b/test/nilptr/arrayindex.go @@ -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 diff --git a/test/nilptr/arrayindex1.go b/test/nilptr/arrayindex1.go index ac72b789d..59126f82d 100644 --- a/test/nilptr/arrayindex1.go +++ b/test/nilptr/arrayindex1.go @@ -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 diff --git a/test/nilptr/arraytoslice.go b/test/nilptr/arraytoslice.go index 07ecfe01f..4864d6855 100644 --- a/test/nilptr/arraytoslice.go +++ b/test/nilptr/arraytoslice.go @@ -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 diff --git a/test/nilptr/arraytoslice1.go b/test/nilptr/arraytoslice1.go index 78c0d8538..1a479dcdb 100644 --- a/test/nilptr/arraytoslice1.go +++ b/test/nilptr/arraytoslice1.go @@ -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 diff --git a/test/nilptr/arraytoslice2.go b/test/nilptr/arraytoslice2.go index 52a238eb2..0990b899d 100644 --- a/test/nilptr/arraytoslice2.go +++ b/test/nilptr/arraytoslice2.go @@ -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 diff --git a/test/nilptr/slicearray.go b/test/nilptr/slicearray.go index d1d2a25d9..7a156b5e6 100644 --- a/test/nilptr/slicearray.go +++ b/test/nilptr/slicearray.go @@ -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 diff --git a/test/nilptr/structfield.go b/test/nilptr/structfield.go index 51da7a9a5..22db500d7 100644 --- a/test/nilptr/structfield.go +++ b/test/nilptr/structfield.go @@ -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 diff --git a/test/nilptr/structfield1.go b/test/nilptr/structfield1.go index 5390a643d..520136805 100644 --- a/test/nilptr/structfield1.go +++ b/test/nilptr/structfield1.go @@ -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 diff --git a/test/nilptr/structfield2.go b/test/nilptr/structfield2.go index f11e3df67..a0a552c93 100644 --- a/test/nilptr/structfield2.go +++ b/test/nilptr/structfield2.go @@ -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 diff --git a/test/nilptr/structfieldaddr.go b/test/nilptr/structfieldaddr.go index 5ac5deeb6..32e9f7931 100644 --- a/test/nilptr/structfieldaddr.go +++ b/test/nilptr/structfieldaddr.go @@ -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 @@ -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 |