Minor: make diagnostic tests usable with IDEA & JPS
This commit is contained in:
committed by
Dmitry Petrov
parent
a633a33627
commit
107ab06042
@@ -9,6 +9,7 @@ import com.intellij.openapi.util.io.FileUtil
|
||||
import com.intellij.openapi.util.text.StringUtil
|
||||
import com.intellij.psi.PsiElement
|
||||
import com.intellij.psi.search.GlobalSearchScope
|
||||
import junit.framework.AssertionFailedError
|
||||
import junit.framework.TestCase
|
||||
import org.jetbrains.kotlin.TestsCompilerError
|
||||
import org.jetbrains.kotlin.analyzer.AnalysisResult
|
||||
@@ -71,6 +72,8 @@ abstract class AbstractDiagnosticsTest : BaseDiagnosticsTest() {
|
||||
analyzeAndCheckUnhandled(testDataFile, files)
|
||||
} catch (t: AssertionError) {
|
||||
throw t
|
||||
} catch (t: AssertionFailedError) {
|
||||
throw t
|
||||
} catch (t: Throwable) {
|
||||
throw TestsCompilerError(t)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user