Hopefully, fix tests (they needn't to be executed actually)
This commit is contained in:
@@ -29,6 +29,14 @@ import java.util.Set;
|
|||||||
public class TestlibTest extends CodegenTestCase {
|
public class TestlibTest extends CodegenTestCase {
|
||||||
|
|
||||||
public static Test suite() {
|
public static Test suite() {
|
||||||
|
try {
|
||||||
|
Class.forName("test.collections.CollectionTest");
|
||||||
|
System.out.println("Tests in Kotlin found in classpath. This test suite shall not be run, since testlib tests will run normally.");
|
||||||
|
return new TestSuite("Empty.StandardLibrary");
|
||||||
|
}
|
||||||
|
catch (Throwable e) {
|
||||||
|
System.out.println("Tests in Kotlin haven't been found in classpath. This test suite is valid.");
|
||||||
|
}
|
||||||
return new TestlibTest().buildSuite();
|
return new TestlibTest().buildSuite();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,7 +86,7 @@ public class TestlibTest extends CodegenTestCase {
|
|||||||
|
|
||||||
final GeneratedClassLoader loader = new GeneratedClassLoader(
|
final GeneratedClassLoader loader = new GeneratedClassLoader(
|
||||||
classFileFactory,
|
classFileFactory,
|
||||||
new URLClassLoader(new URL[]{ForTestCompileStdlib.stdlibJarForTests().toURI().toURL(), junitJar.toURI().toURL()},
|
new URLClassLoader(new URL[]{ForTestCompileStdlib.stdlibJarForTests().toURI().toURL()},
|
||||||
TestCase.class.getClassLoader()));
|
TestCase.class.getClassLoader()));
|
||||||
|
|
||||||
JetTypeMapper typeMapper = new JetTypeMapper(classFileFactory.state.getStandardLibrary(), session.getMyBindingContext());
|
JetTypeMapper typeMapper = new JetTypeMapper(classFileFactory.state.getStandardLibrary(), session.getMyBindingContext());
|
||||||
|
|||||||
Reference in New Issue
Block a user