Debugger tests: throw FileComparisonFailure instaed of ComparisonFailure
This commit is contained in:
@@ -46,6 +46,7 @@ import org.jetbrains.kotlin.name.FqName;
|
||||
import org.jetbrains.kotlin.psi.JetFile;
|
||||
import org.jetbrains.kotlin.test.JetTestUtils;
|
||||
import org.jetbrains.kotlin.test.MockLibraryUtil;
|
||||
import org.junit.ComparisonFailure;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
@@ -224,4 +225,16 @@ public abstract class KotlinDebuggerTestCase extends DescriptorTestCase {
|
||||
protected Sdk getTestProjectJdk() {
|
||||
return PluginTestCaseBase.fullJdk();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void checkTestOutput() throws Exception {
|
||||
try {
|
||||
super.checkTestOutput();
|
||||
}
|
||||
catch (ComparisonFailure e) {
|
||||
JetTestUtils.assertEqualsToFile(
|
||||
new File(getTestAppPath() + File.separator + "outs" + File.separator + getTestName(true) + ".out"),
|
||||
e.getActual());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user