Mercurial > hg > truffle
comparison mx.truffle/suite.py @ 22241:14e6dfb1ef05
Truffle/Testing: massive rework of tests to accommodate recent instrumentation change with respect to "applyInstrumentation"
- Caused by lack of a "vm" known to the Accessor during most testing, making the Instrumenter unavailable, which is now required to create a CallTarget
- Modified the Instrumenter/Accessor with a static field that can be reflectively "poked" with a vm value for testing
- Create a pair of methods to globally enable/disable testing mode to modify that static field and restore it when tests complete.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 22 Sep 2015 20:31:19 -0700 |
parents | 69156ed8192b |
children | 0d36601f233e |
comparison
equal
deleted
inserted
replaced
22240:f78c72e2e0b6 | 22241:14e6dfb1ef05 |
---|---|
82 "com.oracle.truffle.api.dsl.test" : { | 82 "com.oracle.truffle.api.dsl.test" : { |
83 "subDir" : "truffle", | 83 "subDir" : "truffle", |
84 "sourceDirs" : ["src"], | 84 "sourceDirs" : ["src"], |
85 "dependencies" : [ | 85 "dependencies" : [ |
86 "com.oracle.truffle.dsl.processor", | 86 "com.oracle.truffle.dsl.processor", |
87 "com.oracle.truffle.api.vm", | |
87 "mx:JUNIT", | 88 "mx:JUNIT", |
88 ], | 89 ], |
89 "checkstyle" : "com.oracle.truffle.dsl.processor", | 90 "checkstyle" : "com.oracle.truffle.dsl.processor", |
90 "javaCompliance" : "1.7", | 91 "javaCompliance" : "1.7", |
91 "annotationProcessors" : ["TRUFFLE_DSL_PROCESSOR"], | 92 "annotationProcessors" : ["TRUFFLE_DSL_PROCESSOR"], |
126 "com.oracle.truffle.api.interop.java.test" : { | 127 "com.oracle.truffle.api.interop.java.test" : { |
127 "subDir" : "truffle", | 128 "subDir" : "truffle", |
128 "sourceDirs" : ["src"], | 129 "sourceDirs" : ["src"], |
129 "dependencies" : [ | 130 "dependencies" : [ |
130 "com.oracle.truffle.api.interop.java", | 131 "com.oracle.truffle.api.interop.java", |
132 "com.oracle.truffle.api.vm", | |
131 "mx:JUNIT" | 133 "mx:JUNIT" |
132 ], | 134 ], |
133 "checkstyle" : "com.oracle.truffle.api", | 135 "checkstyle" : "com.oracle.truffle.api", |
134 "javaCompliance" : "1.7", | 136 "javaCompliance" : "1.7", |
135 "workingSets" : "API,Truffle", | 137 "workingSets" : "API,Truffle", |