201: Revert adding RUN_SLOW_ASSERTIONS enabling in KtUsefulTestCase
This commit is contained in:
+4
@@ -97,8 +97,12 @@ public abstract class KtUsefulTestCase extends TestCase {
|
|||||||
// Radar #5755208: Command line Java applications need a way to launch without a Dock icon.
|
// Radar #5755208: Command line Java applications need a way to launch without a Dock icon.
|
||||||
System.setProperty("apple.awt.UIElement", "true");
|
System.setProperty("apple.awt.UIElement", "true");
|
||||||
|
|
||||||
|
// -- KOTLIN ADDITIONAL START --
|
||||||
|
|
||||||
FlexibleTypeImpl.RUN_SLOW_ASSERTIONS = true;
|
FlexibleTypeImpl.RUN_SLOW_ASSERTIONS = true;
|
||||||
AbstractTypeChecker.RUN_SLOW_ASSERTIONS = true;
|
AbstractTypeChecker.RUN_SLOW_ASSERTIONS = true;
|
||||||
|
|
||||||
|
// -- KOTLIN ADDITIONAL END --
|
||||||
}
|
}
|
||||||
|
|
||||||
protected boolean shouldContainTempFiles() {
|
protected boolean shouldContainTempFiles() {
|
||||||
|
|||||||
+9
@@ -63,6 +63,8 @@ import org.jetbrains.annotations.Contract;
|
|||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jetbrains.kotlin.testFramework.MockComponentManagerCreationTracer;
|
import org.jetbrains.kotlin.testFramework.MockComponentManagerCreationTracer;
|
||||||
|
import org.jetbrains.kotlin.types.AbstractTypeChecker;
|
||||||
|
import org.jetbrains.kotlin.types.FlexibleTypeImpl;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.ComparisonFailure;
|
import org.junit.ComparisonFailure;
|
||||||
|
|
||||||
@@ -124,6 +126,13 @@ public abstract class KtUsefulTestCase extends TestCase {
|
|||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -- KOTLIN ADDITIONAL START --
|
||||||
|
|
||||||
|
FlexibleTypeImpl.RUN_SLOW_ASSERTIONS = true;
|
||||||
|
AbstractTypeChecker.RUN_SLOW_ASSERTIONS = true;
|
||||||
|
|
||||||
|
// -- KOTLIN ADDITIONAL END --
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user