mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
Rename eval_result_t to end_execution_reason_t
We're getting ready to stop returning eval_result_t from parser_t::eval
This commit is contained in:
@@ -1033,7 +1033,7 @@ static void test_1_cancellation(const wchar_t *src) {
|
||||
usleep(delay * 1E6);
|
||||
pthread_kill(thread, SIGINT);
|
||||
});
|
||||
eval_result_t ret = parser_t::principal_parser().eval(src, io_chain_t{filler});
|
||||
end_execution_reason_t ret = parser_t::principal_parser().eval(src, io_chain_t{filler});
|
||||
auto buffer = io_bufferfill_t::finish(std::move(filler));
|
||||
if (buffer->buffer().size() != 0) {
|
||||
err(L"Expected 0 bytes in out_buff, but instead found %lu bytes, for command %ls\n",
|
||||
@@ -1041,7 +1041,7 @@ static void test_1_cancellation(const wchar_t *src) {
|
||||
}
|
||||
// TODO: cancelling out of command substitutions is currently reported as an error, not a
|
||||
// cancellation.
|
||||
// do_test(ret == eval_result_t::cancelled);
|
||||
// do_test(ret == end_execution_reason_t::cancelled);
|
||||
(void)ret;
|
||||
iothread_drain_all();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user