Some programs to be tested by Dexter have inconvenient termination conditions, either terminating long after all test commands have been exhausted or never self-terminating at all. This can be fixed by editing the test source to add a new exit condition(s), but doing so may affect debug info, and the "correct" place to exit may be different across different tests for the same program.
This patch adds a command, DexFinishTest, that allows a Dexter test to be conditionally finished at a given breakpoint. This command has the same set of arguments as DexLimitSteps, except that it does not allow a line range (from_line, to_line), only a single line (on_line). When it is triggered the debugger is closed and the test is finished - this does not affect the scoring in Dexter, except in that no further step information will be gathered.