name: "C Bad Expression Test"
description: "Verifies error when evaluating malformed expression"
setup:
- shell: "gcc -g tests/fixtures/simple.c -o tests/fixtures/test_simple_c"
target:
program: "../fixtures/test_simple_c"
adapter: "lldb"
stop_on_entry: true
steps:
- action: command
command: "break simple.c:19"
expect:
success: true
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "breakpoint"
- action: evaluate
expression: "1 + + 2"
expect:
success: false
result_contains: "error"
- action: command
command: "continue"
- action: await
timeout: 10
expect:
reason: "exited"