mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-15 14:34:05 +00:00
Make the expect tests run again
These were inadvertently disabled by a bug which was introduced in
cd7e8f4103
. Fix the bug so the tests run
again.
They don't all pass yet; they regressed during the period they were
disabled.
This commit is contained in:
parent
fae15535db
commit
a379e9ffeb
1 changed files with 5 additions and 3 deletions
|
@ -593,10 +593,12 @@ parse_execution_result_t parse_execution_context_t::run_while_statement(
|
||||||
|
|
||||||
if (cancel_reason == execution_cancellation_loop_control) {
|
if (cancel_reason == execution_cancellation_loop_control) {
|
||||||
// Handle break or continue.
|
// Handle break or continue.
|
||||||
if (ld.loop_status == loop_status_t::continues) {
|
bool do_break = (ld.loop_status == loop_status_t::breaks);
|
||||||
continue;
|
ld.loop_status = loop_status_t::normals;
|
||||||
} else if (ld.loop_status == loop_status_t::breaks) {
|
if (do_break) {
|
||||||
break;
|
break;
|
||||||
|
} else {
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue