tests: decompiler test data lookup fixed for particular build configuration

This commit is contained in:
Roman Shevchenko 2014-10-02 13:58:48 +02:00
parent f735cbc7ea
commit 512a08c13e

View File

@ -33,6 +33,8 @@ public class DecompilerTestFixture {
testDataDir = new File("testData"); testDataDir = new File("testData");
if (!isTestDataDir(testDataDir)) testDataDir = new File("community/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"); 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)); assertTrue("current dir: " + new File("").getAbsolutePath(), isTestDataDir(testDataDir));
//noinspection SSBasedInspection //noinspection SSBasedInspection