name: "C Thread List Test"
description: "Verifies thread list command shows multiple threads"
setup:
- shell: "gcc -g -pthread tests/fixtures/threaded.c -o tests/fixtures/test_threaded_c"
target:
program: "../fixtures/test_threaded_c"
args: []
stop_on_entry: true
steps:
- action: command
command: "break worker_body"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "breakpoint"
- action: command
command: "threads"
expect:
output_contains: "Thread"
- action: command
command: "continue"
- action: await
timeout: 15
expect:
reason: "exited"