syslog: fix skipping of net tests

Also remove some left over copy & paste
in the test of reflect.Copy for arrays.

R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4431074
This commit is contained in:
Gustavo Niemeyer 2011-04-28 14:16:41 -03:00
parent 8133cb3565
commit 3e9a1d50db
2 changed files with 18 additions and 10 deletions

View file

@ -579,13 +579,7 @@ func TestCopyArray(t *testing.T) {
}
for i := len(a); i < len(b); i++ {
if b[i] != c[i] {
if i < len(a) {
t.Errorf("(ii) a[%d]=%d, b[%d]=%d, c[%d]=%d",
i, a[i], i, b[i], i, c[i])
} else {
t.Errorf("(iii) b[%d]=%d, c[%d]=%d",
i, b[i], i, c[i])
}
t.Errorf("(ii) b[%d]=%d, c[%d]=%d", i, b[i], i, c[i])
} else {
t.Logf("elem %d is okay\n", i)
}