From 512a08c13eabcc1d0e6467ee2ba8bf9803f165eb Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Thu, 2 Oct 2014 13:58:48 +0200 Subject: [PATCH] tests: decompiler test data lookup fixed for particular build configuration --- test/org/jetbrains/java/decompiler/DecompilerTestFixture.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java index b82b65e..540c998 100644 --- a/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java +++ b/test/org/jetbrains/java/decompiler/DecompilerTestFixture.java @@ -33,6 +33,8 @@ 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"); + if (!isTestDataDir(testDataDir)) testDataDir = new File("../community/plugins/java-decompiler/engine/testData"); + if (!isTestDataDir(testDataDir)) testDataDir = new File("../plugins/java-decompiler/engine/testData"); assertTrue("current dir: " + new File("").getAbsolutePath(), isTestDataDir(testDataDir)); //noinspection SSBasedInspection