From: Russ Cox Date: Wed, 11 Nov 2009 21:07:46 +0000 (-0800) Subject: log test: don't assume a fixed set of letters for $GOROOT X-Git-Tag: weekly.2009-11-12~28 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8515a9f4e2eeafeec79104ec69a56d1ed861ab38;p=gostls13.git log test: don't assume a fixed set of letters for $GOROOT Fixes #27. R=r https://golang.org/cl/152075 --- diff --git a/src/pkg/log/log_test.go b/src/pkg/log/log_test.go index 921abd612d..caef8b1346 100644 --- a/src/pkg/log/log_test.go +++ b/src/pkg/log/log_test.go @@ -18,7 +18,7 @@ const ( Rtime = `[0-9][0-9]:[0-9][0-9]:[0-9][0-9]`; Rmicroseconds = `\.[0-9][0-9][0-9][0-9][0-9][0-9]`; Rline = `[0-9]+:`; - Rlongfile = `/[A-Za-z0-9_/\-]+\.go:` + Rline; + Rlongfile = `.*/[A-Za-z0-9_\-]+\.go:` + Rline; Rshortfile = `[A-Za-z0-9_\-]+\.go:` + Rline; )