name: "Go Thread List Test"
description: "Verifies thread list command shows goroutines"
setup:
- shell: "go build -gcflags='all=-N -l' -o tests/fixtures/test_threaded_go tests/fixtures/threaded.go"
target:
program: "../fixtures/test_threaded_go"
args: []
adapter: "go"
stop_on_entry: true
steps:
- action: command
command: "break main.worker"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "breakpoint"
- action: command
command: "threads"
expect:
output_contains: "Goroutine"
- action: command
command: "continue"
- action: await
timeout: 15
expect:
reason: "terminated"