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
695e3938
Commit
695e3938
authored
Jun 27, 2008
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add readfile test
update golden SVN=125006
parent
55377131
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
21 deletions
+49
-21
golden.out
test/golden.out
+20
-20
readfile.go
test/readfile.go
+28
-0
run
test/run
+1
-1
No files found.
test/golden.out
View file @
695e3938
=========== ./args.go
argc
panic on line 171 PC=0x150c
0x150c?zi
mainM-BM-7main(0, 0, 0, ...)
mainM-BM-7main(0x0, 0x0, 0x3, ...)
0x12e5?zi
=========== ./char_lit.go
...
...
@@ -50,10 +44,14 @@ hello, world
=========== ./nil.go
=========== ./readfile.go
=========== ./sieve.go
sieve.go:8: fatal error: walktype: switch 1 unknown op SEND l(17
1
)
sieve.go:8: fatal error: walktype: switch 1 unknown op SEND l(17
6
)
BUG: known to fail incorrectly
=========== ./simasign.go
=========== ./string_lit.go
=========== ./switch.go
...
...
@@ -76,16 +74,6 @@ test0.go:47: illegal types for operand: AS
({})
BUG: known to fail incorrectly
=========== ./test_integer.go
TestConv
TestAdd
TestSub
TestMul
TestDiv
TestMod
TestFact
PASSED
=========== ./turing.go
Hello World!
...
...
@@ -176,7 +164,7 @@ bugs/bug025.go:7: fatal error: dumpexportvar: oname nil: Foo
BUG: known to fail incorrectly or at least with a bad message
=========== bugs/bug026.go
traceback: mainM-BM-7
sigs_I: not defined
initsig: main·
sigs_I: not defined
BUG: known to fail incorrectly
=========== bugs/bug027.go
...
...
@@ -273,8 +261,8 @@ Faulting address: 0x1
pc: 0x152c
0x152c?zi
main
M-BM-7
main(0, 0, 0, ...)
main
M-BM-7
main(0x0, 0x0, 0x1, ...)
main
·
main(0, 0, 0, ...)
main
·
main(0x0, 0x0, 0x1, ...)
0x12e5?zi
rax 0x1
...
...
@@ -329,6 +317,18 @@ bugs/bug056.go:9: illegal types for operand: AS
(<int32>INT32)
BUG: compilation should succeed
=========== bugs/bug057.go
bugs/bug057.go:13: syntax error
BUG: compilation should succeed
=========== bugs/bug058.go
bugs/bug058.go:11: illegal types for operand: INDEX
(MAP[<string>*STRING]*<Box>{})
(<string>*STRING)
bugs/bug058.go:11: illegal types for operand: AS
(*<Box>{})
BUG: compilation should succeed
=========== fixedbugs/bug000.go
=========== fixedbugs/bug001.go
...
...
test/readfile.go
0 → 100644
View file @
695e3938
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// $G $F.go && $L $F.$A && ./$A.out readfile.go
// # This is some data we can recognize
package
main
func
main
()
int
{
var
s
string
var
ok
bool
s
,
ok
=
sys
.
readfile
(
"readfile.go"
);
if
!
ok
{
print
"couldn't readfile
\n
"
;
return
1
}
start_of_file
:=
"// $G $F.go && $L $F.$A && ./$A.out readfile.go
\n
"
+
"// # This is some data we can recognize
\n
"
+
"
\n
"
+
"package main
\n
"
;
if
s
[
0
:
102
]
!=
start_of_file
{
print
"wrong data
\n
"
;
return
1
}
}
test/run
View file @
695e3938
...
...
@@ -32,7 +32,7 @@ do
echo
>
&2 fail:
$i
fi
done
done
|
cat
-v
>
run.out
done
>
run.out
case
$failed
in
1
)
...
...
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