Skip to content

Commit ea7c1c5

Browse files
committed
[GR-9207] Crash in VirtualizedFileSystemTest.
PullRequest: graal/1288
2 parents 9f0ae38 + ea20eb8 commit ea7c1c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

truffle/src/com.oracle.truffle.api.test/src/com/oracle/truffle/api/test/polyglot/VirtualizedFileSystemTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@
6666
import java.util.function.Consumer;
6767
import java.util.function.Predicate;
6868
import org.graalvm.polyglot.Context;
69+
import org.graalvm.polyglot.Engine;
6970
import org.junit.After;
7071
import org.junit.AfterClass;
7172
import org.junit.Assert;
7273
import org.junit.Test;
7374
import org.junit.runner.RunWith;
7475
import org.junit.runners.Parameterized;
7576
import org.graalvm.polyglot.io.FileSystem;
77+
import org.junit.Before;
7678

7779
@RunWith(Parameterized.class)
7880
public class VirtualizedFileSystemTest {
@@ -164,6 +166,11 @@ public VirtualizedFileSystemTest(final Configuration cfg) {
164166
this.cfg = cfg;
165167
}
166168

169+
@Before
170+
public void setUp() {
171+
Engine.create().close();
172+
}
173+
167174
@After
168175
public void tearDown() {
169176
languageAction = null;

0 commit comments

Comments
 (0)