diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-03 00:35:55 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-03 00:35:55 +0800 |
commit | 55e55826ee3b763be8805dcdef0468a179619ba1 (patch) | |
tree | 067d0cdce0e6456a4feb5453ef1d33e3aa5c80cb /tests | |
parent | 530953050ad0cf99d2a354c165b431d111baa1e3 (diff) | |
download | go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar.gz go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar.bz2 go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar.lz go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar.xz go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.tar.zst go-tangerine-55e55826ee3b763be8805dcdef0468a179619ba1.zip |
Changed JUMP(I) behaviour.
* All jumps must land on a JUMPDEST instruction byte.
* The byte may not be part of a PUSH*
Diffstat (limited to 'tests')
-rw-r--r-- | tests/vm/gh_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/vm/gh_test.go b/tests/vm/gh_test.go index f1e4d1acc..698b0aefc 100644 --- a/tests/vm/gh_test.go +++ b/tests/vm/gh_test.go @@ -78,6 +78,12 @@ func RunVmTest(p string, t *testing.T) { helper.CreateFileTests(t, p, &tests) for name, test := range tests { + /* + helper.Logger.SetLogLevel(5) + if name != "jump0_jumpdest2" { + continue + } + */ statedb := state.New(helper.NewTrie()) for addr, account := range test.Pre { obj := StateObjectFromAccount(addr, account) @@ -127,7 +133,7 @@ func RunVmTest(p string, t *testing.T) { if isVmTest { if len(test.Gas) == 0 && err == nil { - t.Errorf("%s's gas unspecified, indicating an error. VM returned (incorrectly) successfull") + t.Errorf("%s's gas unspecified, indicating an error. VM returned (incorrectly) successfull", name) } else { gexp := ethutil.Big(test.Gas) if gexp.Cmp(gas) != 0 { |