aboutsummaryrefslogtreecommitdiff
path: root/test/nilptr
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-11-09 23:11:36 -0800
committerRuss Cox <rsc@golang.org>2009-11-09 23:11:36 -0800
commitda776791c4f45331b5cd14385e4b0afb28827191 (patch)
tree16d18e0a6b14ae5e420bd9faf76031a7574293e6 /test/nilptr
parent3d668c1b5dbd6c693ed1db56b3d156184d9dc5d9 (diff)
downloadgo-da776791c4f45331b5cd14385e4b0afb28827191.tar.xz
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
Diffstat (limited to 'test/nilptr')
-rw-r--r--test/nilptr/arrayindex.go3
-rw-r--r--test/nilptr/arrayindex1.go3
-rw-r--r--test/nilptr/arraytoslice.go3
-rw-r--r--test/nilptr/arraytoslice1.go3
-rw-r--r--test/nilptr/arraytoslice2.go3
-rw-r--r--test/nilptr/slicearray.go3
-rw-r--r--test/nilptr/structfield.go3
-rw-r--r--test/nilptr/structfield1.go3
-rw-r--r--test/nilptr/structfield2.go3
-rw-r--r--test/nilptr/structfieldaddr.go3
10 files changed, 20 insertions, 10 deletions
diff --git a/test/nilptr/arrayindex.go b/test/nilptr/arrayindex.go
index 0bc6bf4a89..c42dedee81 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 ac72b789d6..59126f82d5 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 07ecfe01f9..4864d68552 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 78c0d8538d..1a479dcdb2 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 52a238eb29..0990b899dd 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 d1d2a25d99..7a156b5e64 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 51da7a9a57..22db500d7d 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 5390a643d6..520136805f 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 f11e3df67d..a0a552c933 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 5ac5deeb6b..32e9f79315 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