Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
648b3524
Commit
648b3524
authored
May 19, 2015
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/vm: updated tests and skipped output for specific tests
Skipped tests due to large return value
parent
87a05c8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
gh_test.go
tests/vm/gh_test.go
+11
-8
No files found.
tests/vm/gh_test.go
View file @
648b3524
...
...
@@ -87,7 +87,7 @@ func RunVmTest(p string, t *testing.T) {
vm.Debug = true
glog.SetV(4)
glog.SetToStderr(true)
if name != "
stackLimitPush32_1024
" {
if name != "
Call50000_sha256
" {
continue
}
*/
...
...
@@ -128,9 +128,15 @@ func RunVmTest(p string, t *testing.T) {
ret
,
logs
,
gas
,
err
=
helper
.
RunState
(
statedb
,
env
,
test
.
Transaction
)
}
rexp
:=
helper
.
FromHex
(
test
.
Out
)
if
bytes
.
Compare
(
rexp
,
ret
)
!=
0
{
t
.
Errorf
(
"%s's return failed. Expected %x, got %x
\n
"
,
name
,
rexp
,
ret
)
switch
name
{
// the memory required for these tests (4294967297 bytes) would take too much time.
// on 19 May 2015 decided to skip these tests their output.
case
"mload32bitBound_return"
,
"mload32bitBound_return2"
:
default
:
rexp
:=
helper
.
FromHex
(
test
.
Out
)
if
bytes
.
Compare
(
rexp
,
ret
)
!=
0
{
t
.
Errorf
(
"%s's return failed. Expected %x, got %x
\n
"
,
name
,
rexp
,
ret
)
}
}
if
isVmTest
{
...
...
@@ -246,8 +252,7 @@ func TestLogTest(t *testing.T) {
}
func
TestPerformance
(
t
*
testing
.
T
)
{
t
.
Skip
()
const
fn
=
"../files/VMTests/vmPerformance.json"
const
fn
=
"../files/VMTests/vmPerformanceTest.json"
RunVmTest
(
fn
,
t
)
}
...
...
@@ -342,13 +347,11 @@ func TestMemory(t *testing.T) {
}
func
TestMemoryStress
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped due to...consuming too much memory :D"
)
const
fn
=
"../files/StateTests/stMemoryStressTest.json"
RunVmTest
(
fn
,
t
)
}
func
TestQuadraticComplexity
(
t
*
testing
.
T
)
{
t
.
Skip
()
// takes too long
const
fn
=
"../files/StateTests/stQuadraticComplexityTest.json"
RunVmTest
(
fn
,
t
)
}
...
...
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