aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm_test_util.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-11 06:27:30 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-12 00:43:22 +0800
commit9cacec70f9af77aaf9bf7f48b90f16ebc6d36298 (patch)
treebdea8f53f8058294dc7f0659c317e553b5d4c65b /tests/vm_test_util.go
parent32395ddb891f3a32bc1295296a0887ed9479eeb0 (diff)
downloadgo-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.gz
go-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.zst
go-tangerine-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.zip
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
Diffstat (limited to 'tests/vm_test_util.go')
-rw-r--r--tests/vm_test_util.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vm_test_util.go b/tests/vm_test_util.go
index b29dcd20f..71a4f5e33 100644
--- a/tests/vm_test_util.go
+++ b/tests/vm_test_util.go
@@ -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