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:
ridiculousfish
2020-01-23 16:45:00 -08:00
parent e640a01ea5
commit 81e78c78aa
7 changed files with 202 additions and 193 deletions

View File

@@ -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();
}