Commit 1ff5897d authored by Russ Cox's avatar Russ Cox

tweak final line of test output:

4 known bugs; 0 unexpected bugs

which should be less scary to people
unfamiliar with the tests.

R=r
DELTA=44  (29 added, 12 deleted, 3 changed)
OCL=32460
CL=32464
parent 1f6e18fd
== ./
=========== ./cmp2.go =========== ./cmp2.go
comparing uncomparable type []int comparing uncomparable type []int
throw: interface compare throw: interface compare
...@@ -49,6 +51,8 @@ survived SIGCHLD ...@@ -49,6 +51,8 @@ survived SIGCHLD
=========== ./turing.go =========== ./turing.go
Hello World! Hello World!
== ken/
=========== ken/intervar.go =========== ken/intervar.go
print 1 bio 2 file 3 -- abc print 1 bio 2 file 3 -- abc
...@@ -70,9 +74,13 @@ hello world ...@@ -70,9 +74,13 @@ hello world
=========== ken/string.go =========== ken/string.go
abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz
== chan/
=========== chan/nonblock.go =========== chan/nonblock.go
PASS PASS
== interface/
=========== interface/fail.go =========== interface/fail.go
*main.S is not main.I: missing method Foo *main.S is not main.I: missing method Foo
throw: interface conversion throw: interface conversion
...@@ -85,19 +93,7 @@ throw: interface conversion ...@@ -85,19 +93,7 @@ throw: interface conversion
panic PC=xxx panic PC=xxx
=========== bugs/bug132.go == fixedbugs/
BUG: compilation succeeds incorrectly
=========== bugs/bug159.go
abc: expected 4 5 6 got 4 4 -4
BUG: bug159
=========== bugs/bug162.go
123
BUG: should fail
=========== bugs/bug169.go
BUG: errchk: command succeeded unexpectedly
=========== fixedbugs/bug016.go =========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint fixedbugs/bug016.go:7: constant -3 overflows uint
...@@ -233,3 +229,19 @@ interface is main.T, not main.T·bug148·1 ...@@ -233,3 +229,19 @@ interface is main.T, not main.T·bug148·1
throw: interface conversion throw: interface conversion
panic PC=xxx panic PC=xxx
== bugs/
=========== bugs/bug132.go
BUG: compilation succeeds incorrectly
=========== bugs/bug159.go
abc: expected 4 5 6 got 4 4 -4
BUG: bug159
=========== bugs/bug162.go
123
BUG: should fail
=========== bugs/bug169.go
BUG: errchk: command succeeded unexpectedly
...@@ -34,8 +34,10 @@ TMP2FILE=/tmp/gotest2-$$-$USER ...@@ -34,8 +34,10 @@ TMP2FILE=/tmp/gotest2-$$-$USER
# on thresher, 3GB suffices to run the tests; with 2GB, peano fails. # on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
ulimit -v 4000000 ulimit -v 4000000
for dir in . ken chan interface bugs fixedbugs for dir in . ken chan interface fixedbugs bugs
do do
echo
echo '==' $dir'/'
for i in $dir/*.go for i in $dir/*.go
do do
export F=$(basename $i .go) export F=$(basename $i .go)
...@@ -80,6 +82,9 @@ then ...@@ -80,6 +82,9 @@ then
failed=1 failed=1
fi fi
echo 2>&1 $(grep -c '^BUG' run.out) tests are behaving incorrectly notinbugs=$(sed '/^== bugs/q' run.out | grep -c '^BUG')
inbugs=$(sed '1,/^== bugs/d' run.out | grep -c '^BUG')
echo 2>&1 $inbugs known bugs';' $notinbugs unexpected bugs
exit $failed exit $failed
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment