name: "Complex Variable Verification"
description: "Verifies local variables, types, and expression evaluation"
setup:
- shell: "gcc -g tests/fixtures/simple.c -o tests/fixtures/test_simple_c"
target:
program: "../fixtures/test_simple_c"
args: []
stop_on_entry: true
steps:
- action: command
command: "break main"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "breakpoint"
file: "simple.c"
- action: command
command: "next"
- action: await
timeout: 10
- action: command
command: "next"
- action: await
timeout: 10
- action: command
command: "next"
- action: await
timeout: 10
- action: inspect_locals
asserts:
- name: "x"
type: "int"
- name: "y"
type: "int"
- action: evaluate
expression: "x + y"
expect:
result_contains: ""
- action: inspect_stack
asserts:
- index: 0
function: "main"
file: "simple.c"
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "exited"