Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when running tests, no tests matching. #7

Closed
gopherbot opened this issue Nov 11, 2009 · 9 comments
Closed

Crash when running tests, no tests matching. #7

gopherbot opened this issue Nov 11, 2009 · 9 comments

Comments

@gopherbot
Copy link
Contributor

by stephen.thorne:

What steps will reproduce the problem?
1. On Fedora 11, i386
2. Mercurial checkout, checkout tip was 3952:64e703cb307d / Tue Nov 10
14:09:01 2009 -0800
3. Run src$ ./all.bash

What is the expected output? What do you see instead?

An error occurs:
cd archive/tar && make test
make[1]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
gotest
make[2]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
rm -f _test/archive/tar.a _gotest_.8
make[2]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
make[2]: Entering directory `/home/sthorne/go/src/pkg/archive/tar'
8g -o _gotest_.8 common.go reader.go writer.go    reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.8 
make[2]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
gotest: error: no tests matching Test([^a-z].*)? in _test/archive/tar.a
make[1]: *** [test] Error 2
make[1]: Leaving directory `/home/sthorne/go/src/pkg/archive/tar'
make: *** [archive/tar.test] Error 2

What is your $GOOS?  $GOARCH?
GOROOT=/home/sthorne/go
GOOS=linux
GOARCH=386
GOBIN=/home/sthorne/bin

Which revision are you sync'ed to?  (hg log -l 1)
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <rsc@golang.org>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links


Please provide any additional information below.

I have attached the tar.a file below. Grepping through this file I do see
appropriate Test* methods.

Attachments:

  1. tar.a (261238 bytes)
@rsc
Copy link
Contributor

rsc commented Nov 11, 2009

Comment 1:

It would be helpful to see the output of
cd $GOROOT/src/pkg/archive/tar
sh -x gotest
Thanks.

@gopherbot
Copy link
Contributor Author

Comment 2 by tfolger:

I'm also seeing this issue, linux/amd64
$ hg log -l 1
changeset:   3952:64e703cb307d
tag:         tip
user:        Russ Cox <rsc@golang.org>
date:        Tue Nov 10 14:09:01 2009 -0800
summary:     update video links
$ GOROOT=/usr/local/src/go/mercurial_repo GOOS=linux GOARCH=amd64 sh -x gotest
+ _GC=
+ . /usr/local/src/go/mercurial_repo/src/Make.amd64
++ O=6
++ AS=6a
++ CC=6c
++ GC=6g
++ LD=6l
++ OS=568vq
++ CFLAGS=-FVw
+ '[' -z 6 ']'
+ E=
+ case "$GOOS" in
+ case x"$GOARCH" in
+ GC=6g
+ GL=6l
+ GC='6g -I _test'
+ GL='6l -L _test'
+ export GC GL O AS CC LD
+ gofiles=
+ loop=true
+ true
+ case "x$1" in
+ loop=false
+ false
+ case "x$gofiles" in
+++ ls reader_test.go writer_test.go '*_test.pb.go'
++ echo -n reader_test.go writer_test.go
+ gofiles='reader_test.go writer_test.go'
+ case "x$gofiles" in
+ sh
+ sed -n 's/^\/\/ gotest: //p' reader_test.go writer_test.go
+++ grep '^package[     ]' reader_test.go writer_test.go /dev/null
+++ grep ':.*_test'
+++ sed 's/:.*//'
++ echo
+ xgofiles=
+++ grep '^package[     ]' reader_test.go writer_test.go /dev/null
+++ grep -v ':.*_test'
+++ sed 's/:.*//'
++ echo reader_test.go writer_test.go
+ gofiles='reader_test.go writer_test.go'
+ xofile=
+ havex=false
+ '[' x '!=' x ']'
+ set -e
+ make testpackage-clean
rm -f _test/archive/tar.a _gotest_.6
+ make testpackage 'GOTESTFILES=reader_test.go writer_test.go'
6g -o _gotest_.6 common.go reader.go writer.go    reader_test.go writer_test.go
rm -f _test/archive/tar.a
gopack grc _test/archive/tar.a _gotest_.6 
+ false
+ trap 'rm -f _testmain.go _testmain.6' 0 1 2 3 14 15
+ MAKEFLAGS=
+ MAKELEVEL=
++ make -s importpath
+ importpath=archive/tar
+ pattern='Test([^a-z].*)?'
++ 6nm -s _test/archive/tar.a
++ egrep ' T .*·Test([^a-z].*)?$'
++ grep -v '·.*[.·]'
++ sed 's/.* //; s/·/./'
+ tests=
+ '[' x = x ']'
+ echo 'gotest: error: no tests matching Test([^a-z].*)?' in _test/archive/tar.a
gotest: error: no tests matching Test([^a-z].*)? in _test/archive/tar.a
+ exit 2
+ rm -f _testmain.go _testmain.6

@gopherbot
Copy link
Contributor Author

Comment 3 by tfolger:

also, one more bit of info:
$ ls src/pkg/archive/tar/_test/archive/
tar.a

@rsc
Copy link
Contributor

rsc commented Nov 11, 2009

Comment 4:

This issue was closed by revision 9604f7b.

Status changed to Fixed.

Merged into issue #-.

@gopherbot
Copy link
Contributor Author

Comment 5 by aphax@hotmail.com:

I just wanted to note that despite already having that revision, the problem still
occurs. I can work around it by setting LC_ALL=C, as suggested on the CommonProblems
page.

@gopherbot
Copy link
Contributor Author

Comment 6 by adam.lehenbauer:

This is still occurring for me; the LC_ALL=C workaround does not help.
$ hg log -l 1
changeset:   3977:a522a4541e0e
tag:         tip
user:        Russ Cox <rsc@golang.org>
date:        Tue Nov 10 23:42:21 2009 -0800
summary:     lib9: rip out platform specific code that breaks on pclinuxos
$ env | grep LC_ALL
LC_ALL=C
$ env | grep '^GO'
GOBIN=/home/adam/sandbox/go/bin
GOARCH=amd64
GOROOT=/home/adam/sandbox/go
GOOS=linux

@gopherbot
Copy link
Contributor Author

Comment 7 by mdkcore:

Same problem here, with same error messages and last version from mercurial
=(

@gopherbot
Copy link
Contributor Author

Comment 8 by cristian_r_rojas@yahoo.com:

The compiler, linker, etc are created and they seem to work but any program fails to 
run
For example
tcsh> ls -l /local/bin/6*
-rwxr-xr-x  1 nt022cr aplprg4 242068 Nov 20 15:19 /local/bin/6a
-rwxr-xr-x  1 nt022cr aplprg4 693138 Nov 20 15:19 /local/bin/6c
-rwxr-xr-x  1 nt022cr aplprg4 448775 Nov 20 15:20 /local/bin/6cov
-rwxr-xr-x  1 nt022cr aplprg4 964857 Nov 20 15:20 /local/bin/6g
-rwxr-xr-x  1 nt022cr aplprg4 415057 Nov 20 15:19 /local/bin/6l
-rwxr-xr-x  1 nt022cr aplprg4 272621 Nov 20 15:20 /local/bin/6nm
-rwxr-xr-x  1 nt022cr aplprg4 438394 Nov 20 15:20 /local/bin/6prof
tcsh> cat hello.go
package main
import "fmt"
func main() {
        fmt.Printf("hello, world\n")
}
tcsh> 6g hello.go
frdapdev01[1015]tcsh> 6l hello.6
frdapdev01[1016]tcsh> ./6.out
Killed
tcsh>

@gopherbot
Copy link
Contributor Author

Comment 9 by cristian_r_rojas@yahoo.com:

The compiler, linker, etc are created and they seem to work but any program fails to 
run
For example
tcsh> uname -a
Linux XXXX #1 SMP Fri Jun 30 10:32:04 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux
tcsh> ls -l /local/bin/6*
-rwxr-xr-x  1 nt022cr aplprg4 242068 Nov 20 15:19 /local/bin/6a
-rwxr-xr-x  1 nt022cr aplprg4 693138 Nov 20 15:19 /local/bin/6c
-rwxr-xr-x  1 nt022cr aplprg4 448775 Nov 20 15:20 /local/bin/6cov
-rwxr-xr-x  1 nt022cr aplprg4 964857 Nov 20 15:20 /local/bin/6g
-rwxr-xr-x  1 nt022cr aplprg4 415057 Nov 20 15:19 /local/bin/6l
-rwxr-xr-x  1 nt022cr aplprg4 272621 Nov 20 15:20 /local/bin/6nm
-rwxr-xr-x  1 nt022cr aplprg4 438394 Nov 20 15:20 /local/bin/6prof
tcsh> cat hello.go
package main
import "fmt"
func main() {
        fmt.Printf("hello, world\n")
}
tcsh> 6g hello.go
tcsh> 6l hello.6
tcsh> ls -l *out
-rwxr-xr-x  1 nt022cr aplprg4 635184 Nov 20 15:26 6.out
tcsh> ./6.out
Killed
tcsh>

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants