summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/org/jetbrains/java/decompiler/DecompilerTestFixture.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
index f8fb9a5..b82b65e 100644
--- a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
+++ b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java
@@ -33,7 +33,7 @@ public class DecompilerTestFixture {
testDataDir = new File("testData");
if (!isTestDataDir(testDataDir)) testDataDir = new File("community/plugins/java-decompiler/engine/testData");
if (!isTestDataDir(testDataDir)) testDataDir = new File("plugins/java-decompiler/engine/testData");
- assertTrue(isTestDataDir(testDataDir));
+ assertTrue("current dir: " + new File("").getAbsolutePath(), isTestDataDir(testDataDir));
//noinspection SSBasedInspection
tempDir = File.createTempFile("decompiler_test_", "_dir");
@@ -51,7 +51,9 @@ public class DecompilerTestFixture {
}
public void tearDown() {
- delete(tempDir);
+ if (tempDir != null) {
+ delete(tempDir);
+ }
}
public File getTestDataDir() {