aboutsummaryrefslogtreecommitdiffstats
path: root/tests/vm_test.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.go
parent32395ddb891f3a32bc1295296a0887ed9479eeb0 (diff)
downloaddexon-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.gz
dexon-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.tar.zst
dexon-9cacec70f9af77aaf9bf7f48b90f16ebc6d36298.zip
cmd/evm, core/vm, tests: changed DisableVm to EnableVm
Diffstat (limited to 'tests/vm_test.go')
-rw-r--r--tests/vm_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/vm_test.go b/tests/vm_test.go
index afa1424d5..96718db3c 100644
--- a/tests/vm_test.go
+++ b/tests/vm_test.go
@@ -17,20 +17,21 @@
package tests
import (
+ "os"
"path/filepath"
"testing"
)
func BenchmarkVmAckermann32Tests(b *testing.B) {
fn := filepath.Join(vmTestDir, "vmPerformanceTest.json")
- if err := BenchVmTest(fn, bconf{"ackermann32", true, false}, b); err != nil {
+ if err := BenchVmTest(fn, bconf{"ackermann32", true, os.Getenv("JITVM") == "true"}, b); err != nil {
b.Error(err)
}
}
func BenchmarkVmFibonacci16Tests(b *testing.B) {
fn := filepath.Join(vmTestDir, "vmPerformanceTest.json")
- if err := BenchVmTest(fn, bconf{"fibonacci16", true, false}, b); err != nil {
+ if err := BenchVmTest(fn, bconf{"fibonacci16", true, os.Getenv("JITVM") == "true"}, b); err != nil {
b.Error(err)
}
}