1 | // Purpose: |
2 | // Test that \DexFinishTest can be used without a condition or hit_count, |
3 | // so the test simply exits as soon as the line referenced by \DexFinishTest |
4 | // is stepped on. |
5 | // Tests using the default controller (no \DexLimitSteps). |
6 | // |
7 | // RUN: %dexter_regression_test_build %s -o %t |
8 | // RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
9 | // CHECK: default_simple.cpp |
10 | |
11 | int main() { |
12 | int x = 0; |
13 | x = 1; // DexLabel('start_line') |
14 | x = 2; // DexLabel('finish_line') |
15 | } |
16 | |
17 | // DexFinishTest(on_line=ref('finish_line')) |
18 | // DexExpectWatchValue('x', 0, 1, from_line=ref('start_line'), to_line=ref('finish_line')) |
19 | |