mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
prevent contamination of find usages with unrelated results from test data
(cherry picked from commit 3672208350dbd516d7174badedf66b594f008803) GitOrigin-RevId: 0274afdf288176481bd532acfd9d9102d154519b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
e6dad83c85
commit
5af6a06068
@@ -56,25 +56,25 @@ class FreezeAnalyzerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLockFreeze2() {
|
fun testLockFreeze2() {
|
||||||
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/KTIJ-23464.txt")!!.path).toPath().readText()
|
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/KTIJ-23464.txt")!!.path).toPath().readText().replace("2.", ".")
|
||||||
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in org.jetbrains.kotlin.org.eclipse.aether.internal.impl.synccontext.named.DiscriminatingNameMapper.getHostname")
|
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in org.jetbrains.kotlin.org.eclipse.aether.internal.impl.synccontext.named.DiscriminatingNameMapper.getHostname")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLockFreeze3() {
|
fun testLockFreeze3() {
|
||||||
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/IDEA-344522.txt")!!.path).toPath().readText()
|
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/IDEA-344522.txt")!!.path).toPath().readText().replace("2.", ".")
|
||||||
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in com.jetbrains.jsonSchema.impl.PatternProperties.<init>")
|
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in com.jetbrains.jsonSchema.impl.PatternProperties.<init>")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLockFreeze4() {
|
fun testLockFreeze4() {
|
||||||
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/WEB-65320.txt")!!.path).toPath().readText()
|
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/WEB-65320.txt")!!.path).toPath().readText().replace("2.", ".")
|
||||||
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in com.intellij.lang.javascript.buildTools.npm.PackageJsonUtil.findChildPackageJsonFile")
|
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in com.intellij.lang.javascript.buildTools.npm.PackageJsonUtil.findChildPackageJsonFile")
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testLockFreeze5() {
|
fun testLockFreeze5() {
|
||||||
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/KT-65652.txt")!!.path).toPath().readText()
|
val threadDump = File(this::class.java.classLoader.getResource("freezes/readWriteLock/KT-65652.txt")!!.path).toPath().readText().replace("2.", ".")
|
||||||
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in org.jetbrains.kotlin.idea.fir.extensions.KotlinK2BundledCompilerPluginsKt.readFileContentFromJar")
|
FreezeAnalyzer.analyzeFreeze(threadDump)?.message.shouldBe("Long read action in org.jetbrains.kotlin.idea.fir.extensions.KotlinK2BundledCompilerPluginsKt.readFileContentFromJar")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,7 +117,7 @@ class FreezeAnalyzerTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testNoFreeze() {
|
fun testNoFreeze() {
|
||||||
val threadDump = File(this::class.java.classLoader.getResource("freezes/noFreeze/lowMemory.txt")!!.path).toPath().readText()
|
val threadDump = File(this::class.java.classLoader.getResource("freezes/noFreeze/lowMemory.txt")!!.path).toPath().readText().replace("2.", ".")
|
||||||
FreezeAnalyzer.analyzeFreeze(threadDump, testName = "kotlin/testCase")?.message.shouldBe("kotlin/testCase: EDT is not blocked/busy (freeze can be the result of extensive GC)")
|
FreezeAnalyzer.analyzeFreeze(threadDump, testName = "kotlin/testCase")?.message.shouldBe("kotlin/testCase: EDT is not blocked/busy (freeze can be the result of extensive GC)")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user