@@ -39,16 +39,12 @@ func TestState(t *testing.T) {
3939 st .fails (`^stRevertTest/RevertPrefoundEmptyOOG\.json/EIP158` , "bug in test" )
4040 st .fails (`^stRevertTest/RevertPrecompiledTouch\.json/Byzantium` , "bug in test" )
4141 st .fails (`^stRevertTest/RevertPrefoundEmptyOOG\.json/Byzantium` , "bug in test" )
42- st .fails (`^stRandom/randomStatetest645\.json/EIP150/.*` , "known bug #15119" )
43- st .fails (`^stRandom/randomStatetest645\.json/Frontier/.*` , "known bug #15119" )
44- st .fails (`^stRandom/randomStatetest645\.json/Homestead/.*` , "known bug #15119" )
45- st .fails (`^stRandom/randomStatetest644\.json/EIP150/.*` , "known bug #15119" )
46- st .fails (`^stRandom/randomStatetest644\.json/Frontier/.*` , "known bug #15119" )
47- st .fails (`^stRandom/randomStatetest644\.json/Homestead/.*` , "known bug #15119" )
42+ st .fails (`^stRandom2/randomStatetest64[45]\.json/(EIP150|Frontier|Homestead)/.*` , "known bug #15119" )
4843 st .fails (`^stCreateTest/TransactionCollisionToEmpty\.json/EIP158/2` , "known bug " )
4944 st .fails (`^stCreateTest/TransactionCollisionToEmpty\.json/EIP158/3` , "known bug " )
5045 st .fails (`^stCreateTest/TransactionCollisionToEmpty\.json/Byzantium/2` , "known bug " )
5146 st .fails (`^stCreateTest/TransactionCollisionToEmpty\.json/Byzantium/3` , "known bug " )
47+
5248 st .walk (t , stateTestDir , func (t * testing.T , name string , test * StateTest ) {
5349 for _ , subtest := range test .Subtests () {
5450 subtest := subtest
@@ -68,8 +64,7 @@ func TestState(t *testing.T) {
6864}
6965
7066// Transactions with gasLimit above this value will not get a VM trace on failure.
71- //const traceErrorLimit = 400000
72- const traceErrorLimit = 0
67+ const traceErrorLimit = 400000
7368
7469func withTrace (t * testing.T , gasLimit uint64 , test func (vm.Config ) error ) {
7570 err := test (vm.Config {})
@@ -93,4 +88,6 @@ func withTrace(t *testing.T, gasLimit uint64, test func(vm.Config) error) {
9388 } else {
9489 t .Log ("EVM operation log:\n " + buf .String ())
9590 }
91+ t .Logf ("EVM output: 0x%x" , tracer .Output ())
92+ t .Logf ("EVM error: %v" , tracer .Error ())
9693}
0 commit comments