Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
04a231d4
Commit
04a231d4
authored
Dec 23, 2010
by
Eoghan Sherry
Committed by
Andrew Gerrand
Dec 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testing: fix error message on invalid regexp
R=golang-dev, adg CC=golang-dev
https://golang.org/cl/3831041
parent
ea70b0d5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/pkg/testing/benchmark.go
src/pkg/testing/benchmark.go
+1
-1
src/pkg/testing/testing.go
src/pkg/testing/testing.go
+1
-1
No files found.
src/pkg/testing/benchmark.go
View file @
04a231d4
...
...
@@ -175,7 +175,7 @@ func RunBenchmarks(matchString func(pat, str string) (bool, os.Error), benchmark
for
_
,
Benchmark
:=
range
benchmarks
{
matched
,
err
:=
matchString
(
*
matchBenchmarks
,
Benchmark
.
Name
)
if
err
!=
nil
{
println
(
"invalid regexp for -benchmarks:"
,
err
)
println
(
"invalid regexp for -benchmarks:"
,
err
.
String
()
)
os
.
Exit
(
1
)
}
if
!
matched
{
...
...
src/pkg/testing/testing.go
View file @
04a231d4
...
...
@@ -144,7 +144,7 @@ func Main(matchString func(pat, str string) (bool, os.Error), tests []InternalTe
for
i
:=
0
;
i
<
len
(
tests
);
i
++
{
matched
,
err
:=
matchString
(
*
match
,
tests
[
i
]
.
Name
)
if
err
!=
nil
{
println
(
"invalid regexp for -match:"
,
err
)
println
(
"invalid regexp for -match:"
,
err
.
String
()
)
os
.
Exit
(
1
)
}
if
!
matched
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment