Commit 9fecba2
[tests] Export JI_JVM_PATH in NUnit tests
Context: https://jenkins.mono-project.com/job/xamarin-android-pr-builder/3640/
Commit d1cce19 broke unit test execution within xamarin-android,
as d1cce19 requires that the path to `jvm.dll` be specified within
the `$JI_JVM_PATH` environment variable, but `RunNUnitTests.targets`
never set or exported that environment variable.
The result is that `$JI_JVM_PATH` wasn't set, causing tests to fail:
OneTimeSetUp: System.TypeInitializationException : The type initializer for 'Java.InteropTests.JavaVMFixture' threw an exception.
----> System.NotSupportedException : The JDK supports creating at most one JVM per process, ever; do you have a JVM running already, or have you already created (and destroyed?) one? (JNI_CreateJavaVM returned -1002).
Code -1002 is `JAVA_INTEROP_JVM_FAILED_NOT_LOADED`, because it wasn't
specified and couldn't be found.
Update `RunNUnitTests.targets` so that `$JI_JVM_PATH` is exported,
allowing `jvm.dll` to be found, in turn allowing unit tests to run.1 parent a2deeab commit 9fecba2
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
11 | 15 | | |
12 | 16 | | |
13 | 17 | | |
| |||
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
30 | 35 | | |
31 | 36 | | |
32 | 37 | | |
| |||
0 commit comments