Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
5667d825
Commit
5667d825
authored
Sep 16, 2010
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build
R=iant CC=golang-dev, ken2
https://golang.org/cl/2182043
parent
304d72be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
errchk
test/errchk
+2
-2
bug305.go
test/fixedbugs/bug305.go
+1
-1
golden.out
test/golden.out
+0
-8
No files found.
test/errchk
View file @
5667d825
...
@@ -68,8 +68,8 @@ foreach $src (@src) {
...
@@ -68,8 +68,8 @@ foreach $src (@src) {
}
}
$regexp
=
$1
;
$regexp
=
$1
;
@errmsg
=
grep
{
/$file:$line
:
/
}
@out
;
@errmsg
=
grep
{
/$file:$line
[:[]
/
}
@out
;
@out
=
grep
{
!
/$file:$line
:
/
}
@out
;
@out
=
grep
{
!
/$file:$line
[:[]
/
}
@out
;
if
(
@errmsg
==
0
)
{
if
(
@errmsg
==
0
)
{
bug
();
bug
();
print
STDERR
"errchk: $file:$line: missing expected error: '$regexp'\n"
;
print
STDERR
"errchk: $file:$line: missing expected error: '$regexp'\n"
;
...
...
test/bugs/bug305.go
→
test/
fixed
bugs/bug305.go
View file @
5667d825
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
// Use //line to set the line number of the next line to 20.
// Use //line to set the line number of the next line to 20.
//line bug305.go:20
//line
fixedbugs/
bug305.go:20
package
p
package
p
...
...
test/golden.out
View file @
5667d825
...
@@ -177,11 +177,3 @@ panic PC=xxx
...
@@ -177,11 +177,3 @@ panic PC=xxx
=========== bugs/bug260.go
=========== bugs/bug260.go
FAIL
FAIL
BUG: bug260 failed
BUG: bug260 failed
=========== bugs/bug305.go
BUG: errchk: bugs/bug305.go:24: missing expected error: 'cannot|incompatible'
errchk: bugs/bug305.go: unmatched error messages:
==================================================
bug305.go:23[bugs/bug305.go:12]: cannot convert "bogus" to type int
bug305.go:23[bugs/bug305.go:12]: cannot use "bogus" (type string) as type int in assignment
==================================================
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