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
5667d825
Commit
5667d825
authored
Sep 15, 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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
11 deletions
+3
-11
test/errchk
test/errchk
+2
-2
test/fixedbugs/bug305.go
test/fixedbugs/bug305.go
+1
-1
test/golden.out
test/golden.out
+0
-8
No files found.
test/errchk
View file @
5667d825
...
...
@@ -68,8 +68,8 @@ foreach $src (@src) {
}
$regexp
=
$1
;
@errmsg
=
grep
{
/$file:$line
:
/
}
@out
;
@out
=
grep
{
!
/$file:$line
:
/
}
@out
;
@errmsg
=
grep
{
/$file:$line
[:[]
/
}
@out
;
@out
=
grep
{
!
/$file:$line
[:[]
/
}
@out
;
if
(
@errmsg
==
0
)
{
bug
();
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 @@
// license that can be found in the LICENSE file.
// Use //line to set the line number of the next line to 20.
//line bug305.go:20
//line
fixedbugs/
bug305.go:20
package
p
...
...
test/golden.out
View file @
5667d825
...
...
@@ -177,11 +177,3 @@ panic PC=xxx
=========== bugs/bug260.go
FAIL
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