aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-09-19 23:28:32 -0400
committerRuss Cox <rsc@golang.org>2010-09-19 23:28:32 -0400
commit33c4ff06693cc7b12e1b4f6a1250aa3d01016bfc (patch)
treecb1887759a14584cc5d4de19f407c01e3dfc7c2c
parentd4baf3ccb7f7b6dd5476b82c480f30d3a2953399 (diff)
downloadgo-33c4ff06693cc7b12e1b4f6a1250aa3d01016bfc.tar.gz
go-33c4ff06693cc7b12e1b4f6a1250aa3d01016bfc.zip
test: fix NaCl build
Wasn't running the temp binary under $E (emulator). R=r CC=golang-dev https://golang.org/cl/2237043
-rw-r--r--test/index.go4
-rwxr-xr-xtest/run3
2 files changed, 4 insertions, 3 deletions
diff --git a/test/index.go b/test/index.go
index a91294cffb..38aa33dd30 100644
--- a/test/index.go
+++ b/test/index.go
@@ -1,8 +1,8 @@
// $G $D/$F.go && $L $F.$A &&
-// ./$A.out -pass 0 >tmp.go && $G tmp.go && $L -o tmp1.$A tmp.$A && ./tmp1.$A &&
+// ./$A.out -pass 0 >tmp.go && $G tmp.go && $L -o $A.out1 tmp.$A && ./$A.out1 &&
// ./$A.out -pass 1 >tmp.go && errchk $G -e tmp.go &&
// ./$A.out -pass 2 >tmp.go && errchk $G -e tmp.go
-// rm -f tmp.go
+// rm -f tmp.go $A.out1
// Copyright 2010 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
diff --git a/test/run b/test/run
index 4ca7754140..f4765d7fae 100755
--- a/test/run
+++ b/test/run
@@ -57,7 +57,7 @@ do
do
export F=$(basename $i .go)
export D=$dir
- sed '/^\/\//!q' $i | sed 's@//@@; $d' |sed 's|./\$A.out|$E &|' >$RUNFILE
+ sed '/^\/\//!q' $i | sed 's@//@@; $d' |sed 's|./\$A.out|$E &|g' >$RUNFILE
if ! { time -p bash -c "bash $RUNFILE >$TMP1FILE 2>&1" ; } 2>$TMP2FILE
then
echo
@@ -99,6 +99,7 @@ done | # clean up some stack noise
/^Trace\/BPT trap/d
/RUNFILE/ s/line 1: *[0-9]*/line 1: PID/
/^\$RUNFILE: line 1: PID Trace\/breakpoint trap/d
+ /Fault in NaCl untrusted code/d
/Segmentation fault/d
/^qemu: uncaught target signal 11 (Segmentation fault) - exiting/d' > run.out