Lines Matching refs:reason
155 /// \param [out] need_reason Whether the detected status requires a reason.
216 /// Extracts the result reason from the input file.
218 /// \pre This can only be called for those result types that require a reason.
221 /// \param first_line The first line of the reason. Because this is part of the
224 /// \param [out] output Buffer to which to write the full reason.
227 /// \return An error if there was no reason in the input or if there is a
235 "failure reason but didn't");
249 return kyua_libc_error_new(errno, "Failed to read reason from "
265 /// \param [out] reason Textual explanation of the result, if any.
266 /// \param reason_size Length of the reason output buffer.
271 int* status_arg, char* const reason, const size_t reason_size)
312 error = read_reason(input, reason_start, reason, reason_size);
315 error = kyua_generic_error_new("Found unexpected reason in passed "
319 reason[0] = '\0';
331 /// \param reason Textual explanation of the result.
339 convert_broken(const char* reason, int status, const char* output,
346 reason, WEXITSTATUS(status));
352 reason, WTERMSIG(status),
360 /// \param reason Textual explanation of the result.
368 convert_expected_death(const char* reason, int status, const char* output,
379 output, KYUA_RESULT_EXPECTED_FAILURE, "%s", reason);
387 /// \param reason Textual explanation of the result.
395 convert_expected_exit(const int status_arg, const char* reason, int status,
402 output, KYUA_RESULT_EXPECTED_FAILURE, "%s", reason);
422 /// \param reason Textual explanation of the result.
430 convert_expected_failure(const char* reason, int status, const char* output,
437 output, KYUA_RESULT_EXPECTED_FAILURE, "%s", reason);
458 /// \param reason Textual explanation of the result.
466 convert_expected_signal(const int status_arg, const char* reason, int status,
473 output, KYUA_RESULT_EXPECTED_FAILURE, "%s", reason);
519 /// \param reason Textual explanation of the result.
527 convert_failed(const char* reason, int status, const char* output,
539 output, KYUA_RESULT_FAILED, "%s", reason);
587 /// \param reason Textual explanation of the result.
595 convert_skipped(const char* reason, int status, const char* output,
601 return kyua_result_write(output, KYUA_RESULT_SKIPPED, "%s", reason);
624 /// \param reason Textual explanation of the result.
634 const char* reason, const int wait_status, const bool timed_out,
641 output, KYUA_RESULT_EXPECTED_FAILURE, "%s", reason);
652 return convert_broken(reason, wait_status, output, success);
655 return convert_expected_death(reason, wait_status, output, success);
658 return convert_expected_exit(status_arg, reason, wait_status, output,
662 return convert_expected_failure(reason, wait_status, output, success);
665 return convert_expected_signal(status_arg, reason, wait_status, output,
672 return convert_failed(reason, wait_status, output, success);
678 return convert_skipped(reason, wait_status, output, success);
700 enum atf_status status; int status_arg; char reason[1024];
703 reason, sizeof(reason));
709 kyua_error_format(error, reason, sizeof(reason));
716 return convert_result(status, status_arg, reason, wait_status, timed_out,