cmd/evm, core/vm, tests: changed DisableVm to EnableVm

This commit is contained in:
Jeffrey Wilcke
2015-08-11 00:27:30 +02:00
parent 32395ddb89
commit 9cacec70f9
10 changed files with 20 additions and 30 deletions

View File

@ -52,7 +52,7 @@ func RunVmTestWithReader(r io.Reader, skipTests []string) error {
type bconf struct {
name string
precomp bool
nojit bool
jit bool
}
func BenchVmTest(p string, conf bconf, b *testing.B) error {
@ -67,8 +67,8 @@ func BenchVmTest(p string, conf bconf, b *testing.B) error {
return fmt.Errorf("test not found: %s", conf.name)
}
pNoJit := vm.DisableJit
vm.DisableJit = conf.nojit
pJit := vm.EnableJit
vm.EnableJit = conf.jit
pForceJit := vm.ForceJit
vm.ForceJit = conf.precomp
@ -99,7 +99,7 @@ func BenchVmTest(p string, conf bconf, b *testing.B) error {
benchVmTest(test, env, b)
}
vm.DisableJit = pNoJit
vm.EnableJit = pJit
vm.ForceJit = pForceJit
return nil