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
This commit is contained in:
Russ Cox 2009-07-29 15:11:19 -07:00
parent 1f6e18fdce
commit 1ff5897d64
2 changed files with 32 additions and 15 deletions

View file

@ -1,4 +1,6 @@
== ./
=========== ./cmp2.go
comparing uncomparable type []int
throw: interface compare
@ -49,6 +51,8 @@ survived SIGCHLD
=========== ./turing.go
Hello World!
== ken/
=========== ken/intervar.go
print 1 bio 2 file 3 -- abc
@ -70,9 +74,13 @@ hello world
=========== ken/string.go
abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz-abcxyz
== chan/
=========== chan/nonblock.go
PASS
== interface/
=========== interface/fail.go
*main.S is not main.I: missing method Foo
throw: interface conversion
@ -85,19 +93,7 @@ throw: interface conversion
panic PC=xxx
=========== 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
== fixedbugs/
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: constant -3 overflows uint
@ -233,3 +229,19 @@ interface is main.T, not main.T·bug148·1
throw: interface conversion
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

View file

@ -34,8 +34,10 @@ TMP2FILE=/tmp/gotest2-$$-$USER
# on thresher, 3GB suffices to run the tests; with 2GB, peano fails.
ulimit -v 4000000
for dir in . ken chan interface bugs fixedbugs
for dir in . ken chan interface fixedbugs bugs
do
echo
echo '==' $dir'/'
for i in $dir/*.go
do
export F=$(basename $i .go)
@ -80,6 +82,9 @@ then
failed=1
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