| 1 | // FIXME: Feature appears to be broken on Windows with dbgeng. |
| 2 | // XFAIL: system-windows |
| 3 | // Purpose: |
| 4 | // Test that \DexFinishTest can be used with a condition, so the test exits |
| 5 | // when the line referenced by \DexFinishTest is stepped on and the given |
| 6 | // condition (x == 5) is satisfied. |
| 7 | // Tests using the default controller (no \DexLimitSteps). |
| 8 | // |
| 9 | // RUN: %dexter_regression_test_cxx_build %s -o %t |
| 10 | // RUN: %dexter_regression_test_run --binary %t -- %s | FileCheck %s |
| 11 | // CHECK: default_conditional.cpp |
| 12 | |
| 13 | int main() { |
| 14 | for (int x = 0; x < 10; ++x) |
| 15 | (void)0; // DexLabel('finish_line') |
| 16 | } |
| 17 | |
| 18 | // DexFinishTest('x', 5, on_line=ref('finish_line')) |
| 19 | // DexExpectWatchValue('x', 0, 1, 2, 3, 4, 5, on_line=ref('finish_line')) |
| 20 | |