aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/blocktest.go2
-rw-r--r--tests/vm/gh_test.go15
2 files changed, 9 insertions, 8 deletions
diff --git a/tests/blocktest.go b/tests/blocktest.go
index 1c4f1c2f2..6b8ee9d4a 100644
--- a/tests/blocktest.go
+++ b/tests/blocktest.go
@@ -186,7 +186,7 @@ func mustConvertHeader(in btHeader) *types.Header {
Coinbase: mustConvertAddress(in.Coinbase),
UncleHash: mustConvertHash(in.UncleHash),
ParentHash: mustConvertHash(in.ParentHash),
- Extra: string(mustConvertBytes(in.ExtraData)),
+ Extra: mustConvertBytes(in.ExtraData),
GasUsed: mustConvertBigInt10(in.GasUsed),
GasLimit: mustConvertBigInt10(in.GasLimit),
Difficulty: mustConvertBigInt10(in.Difficulty),
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go
index 69e2a9819..a96a3eba6 100644
--- a/tests/vm/gh_test.go
+++ b/tests/vm/gh_test.go
@@ -9,8 +9,10 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/state"
"github.com/ethereum/go-ethereum/core/types"
+ "github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/ethdb"
"github.com/ethereum/go-ethereum/logger"
+ "github.com/ethereum/go-ethereum/logger/glog"
"github.com/ethereum/go-ethereum/tests/helper"
)
@@ -80,14 +82,13 @@ func RunVmTest(p string, t *testing.T) {
tests := make(map[string]VmTest)
helper.CreateFileTests(t, p, &tests)
+ vm.Debug = true
+ glog.SetV(4)
+ glog.SetToStderr(true)
for name, test := range tests {
- /*
- vm.Debug = true
- helper.Logger.SetLogLevel(5)
- if name != "Call1MB1024Calldepth" {
- continue
- }
- */
+ if name != "stackLimitPush32_1024" {
+ continue
+ }
db, _ := ethdb.NewMemDatabase()
statedb := state.New(common.Hash{}, db)
for addr, account := range test.Pre {