Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
fix 2 minor tests issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Dec 12, 2014
1 parent 6a924fd commit 88a2066
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
import org.eclipse.dltk.compiler.env.IModuleSource;

import dtool.ast.definitions.EArcheType;
import dtool.engine.CommonSemanticsTest;
import dtool.engine.util.NamedElementUtil;
import dtool.sourcegen.AnnotatedSource.MetadataEntry;
import dtool.tests.MockCompilerInstalls;

public class CompletionEngineSourceTests extends CoreResolverSourceTests {

Expand Down Expand Up @@ -49,7 +51,8 @@ public void runRefSearchTest_________(RefSearchOptions options) {

public void runCompletionEngineTest(IModuleSource moduleSource, int offset, String[] expectedResults, int rplLen) {
DeeCompletionEngine completionEngine;
completionEngine = CompletionEngine_Test.testCompletionEngine(moduleSource, offset, rplLen, null);
completionEngine = CompletionEngine_Test.testCompletionEngine(moduleSource, offset, rplLen,
CommonSemanticsTest.DEFAULT_TestsCompilerInstall.getCompilerPath());

CompletionEngineTestsRequestor requestor = (CompletionEngineTestsRequestor) completionEngine.getRequestor();
checkResults(requestor.results, expectedResults);
Expand Down
2 changes: 1 addition & 1 deletion plugin_tooling/src-test/dtool/tests/CommonDToolTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static BundlePath bundlePath(Location basePath, String other) {
}

public static String testsDubPath() {
return DubHelper.DUB_PATH_OVERRIDE;
return DubHelper.DUB_PATH_OVERRIDE == null ? "dub" : DubHelper.DUB_PATH_OVERRIDE;
}

public static Path testsDubPath2() {
Expand Down

0 comments on commit 88a2066

Please sign in to comment.