diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-04 18:40:11 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-04 18:40:11 +0800 |
commit | a0e44e3281fcef0913b172ed4cdb5283a8d4a46b (patch) | |
tree | e10b9ce906119e3810a15df66f433da678a2764e /tests | |
parent | 60e097a5f4c10e9e869bd2b4b2814b766b409e18 (diff) | |
download | dexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.tar.gz dexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.tar.zst dexon-a0e44e3281fcef0913b172ed4cdb5283a8d4a46b.zip |
basic glog
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/gh_test.go | 15 |
1 files changed, 8 insertions, 7 deletions
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 { |