[debugger] Fixed flaky basic dump tests.

IDEA-371651

GitOrigin-RevId: e2e123f8a80ad7a666e63099949ceec8d9b9c85b
This commit is contained in:
Maria Sokolova
2025-07-01 13:49:14 +00:00
committed by intellij-monorepo-bot
parent f42f4bc465
commit 195b6f9b8a
9 changed files with 27 additions and 32 deletions
@@ -35,9 +35,9 @@ public class K2IdeK1CodeCoroutineDumpTestGenerated extends AbstractK2IdeK1CodeCo
runTest("../testData/coroutines/noCoroutines.kt");
}
@TestMetadata("threeCoroutines.kt")
public void testThreeCoroutines() throws Exception {
runTest("../testData/coroutines/threeCoroutines.kt");
@TestMetadata("sequenceNoCoroutines.kt")
public void testSequenceNoCoroutines() throws Exception {
runTest("../testData/coroutines/sequenceNoCoroutines.kt");
}
@TestMetadata("twoDumps.kt")
@@ -35,9 +35,9 @@ public class K2IdeK2CodeCoroutineDumpTestGenerated extends AbstractK2IdeK2CodeCo
runTest("../testData/coroutines/noCoroutines.kt");
}
@TestMetadata("threeCoroutines.kt")
public void testThreeCoroutines() throws Exception {
runTest("../testData/coroutines/threeCoroutines.kt");
@TestMetadata("sequenceNoCoroutines.kt")
public void testSequenceNoCoroutines() throws Exception {
runTest("../testData/coroutines/sequenceNoCoroutines.kt");
}
@TestMetadata("twoDumps.kt")
@@ -35,9 +35,9 @@ public class CoroutineDumpTestGenerated extends AbstractCoroutineDumpTest {
runTest("testData/coroutines/noCoroutines.kt");
}
@TestMetadata("threeCoroutines.kt")
public void testThreeCoroutines() throws Exception {
runTest("testData/coroutines/threeCoroutines.kt");
@TestMetadata("sequenceNoCoroutines.kt")
public void testSequenceNoCoroutines() throws Exception {
runTest("testData/coroutines/sequenceNoCoroutines.kt");
}
@TestMetadata("twoDumps.kt")
@@ -35,9 +35,9 @@ public class K1IdeK2CodeCoroutineDumpTestGenerated extends AbstractK1IdeK2CodeCo
runTest("testData/coroutines/noCoroutines.kt");
}
@TestMetadata("threeCoroutines.kt")
public void testThreeCoroutines() throws Exception {
runTest("testData/coroutines/threeCoroutines.kt");
@TestMetadata("sequenceNoCoroutines.kt")
public void testSequenceNoCoroutines() throws Exception {
runTest("testData/coroutines/sequenceNoCoroutines.kt");
}
@TestMetadata("twoDumps.kt")
@@ -1,10 +1,10 @@
package threeCoroutines
// ATTACH_LIBRARY: maven(org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.3.8)-javaagent
// ATTACH_LIBRARY: maven(org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2)-javaagent
import kotlin.random.Random
suspend fun main() {
fun main() {
sequence {
yield(239)
sequence {
@@ -12,4 +12,4 @@ suspend fun main() {
yield(666)
}.toList()
}.toList()
}
}
@@ -0,0 +1,7 @@
LineBreakpoint created at sequenceNoCoroutines.kt:12
Run Java
Connected to the target VM
sequenceNoCoroutines.kt:12
Disconnected from the target VM
Process finished with exit code 0
@@ -1,10 +0,0 @@
LineBreakpoint created at threeCoroutines.kt:12
Run Java
Connected to the target VM
threeCoroutines.kt:12
"coroutine#1", state: RUNNING
"coroutine#2", state: RUNNING
"coroutine#3", state: RUNNING
Disconnected from the target VM
Process finished with exit code 0
@@ -1,9 +1,9 @@
package twoDumps
// ATTACH_LIBRARY: maven(org.jetbrains.kotlinx:kotlinx-coroutines-debug:1.3.8)-javaagent
// ATTACH_LIBRARY: maven(org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.2)-javaagent
// REGISTRY: debugger.async.stacks.coroutines=false
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.*
suspend fun foo() {
//Breakpoint!
@@ -20,6 +20,4 @@ fun main() = runBlocking<Unit> {
runBlocking {
bar()
}
}
// REGISTRY: debugger.async.stacks.coroutines=false
}
@@ -6,7 +6,7 @@ twoDumps.kt:10
"coroutine#1", state: RUNNING
twoDumps.kt:15
"coroutine#1", state: RUNNING
"coroutine#4", state: RUNNING
"coroutine#2", state: RUNNING
Disconnected from the target VM
Process finished with exit code 0