Lines Matching refs:status

108 parse_without_reason(const std::string& status, const std::string& rest)  in parse_without_reason()  argument
111 throw engine::format_error(F("%s cannot have a reason") % status); in parse_without_reason()
112 PRE(status == "passed"); in parse_without_reason()
129 parse_with_reason(const std::string& status, const std::string& rest) in parse_with_reason() argument
135 status); in parse_with_reason()
139 if (status == "broken") in parse_with_reason()
141 else if (status == "expected_death") in parse_with_reason()
143 else if (status == "expected_failure") in parse_with_reason()
145 else if (status == "expected_timeout") in parse_with_reason()
147 else if (status == "failed") in parse_with_reason()
149 else if (status == "skipped") in parse_with_reason()
182 parse_with_reason_and_arg(const std::string& status, const std::string& rest) in parse_with_reason_and_arg() argument
191 status % rest); in parse_with_reason_and_arg()
204 argstr % status); in parse_with_reason_and_arg()
210 if (status == "expected_exit") in parse_with_reason_and_arg()
212 else if (status == "expected_signal") in parse_with_reason_and_arg()
225 format_status(const process::status& status) in format_status() argument
227 if (status.exited()) in format_status()
228 return F("exited with code %s") % status.exitstatus(); in format_status()
229 else if (status.signaled()) in format_status()
230 return F("received signal %s%s") % status.termsig() % in format_status()
231 (status.coredump() ? " (core dumped)" : ""); in format_status()
301 const std::string status = data.second.substr(0, delim); in parse() local
302 const std::string rest = data.second.substr(status.length()); in parse()
304 if (status == "broken") in parse()
305 return parse_with_reason(status, rest); in parse()
306 else if (status == "expected_death") in parse()
307 return parse_with_reason(status, rest); in parse()
308 else if (status == "expected_exit") in parse()
309 return parse_with_reason_and_arg(status, rest); in parse()
310 else if (status == "expected_failure") in parse()
311 return parse_with_reason(status, rest); in parse()
312 else if (status == "expected_signal") in parse()
313 return parse_with_reason_and_arg(status, rest); in parse()
314 else if (status == "expected_timeout") in parse()
315 return parse_with_reason(status, rest); in parse()
316 else if (status == "failed") in parse()
317 return parse_with_reason(status, rest); in parse()
318 else if (status == "passed") in parse()
319 return parse_without_reason(status, rest); in parse()
320 else if (status == "skipped") in parse()
321 return parse_with_reason(status, rest); in parse()
323 throw format_error(F("Unknown test result '%s'") % status); in parse()
419 engine::atf_result::apply(const optional< process::status >& status) in apply()
422 if (!status) { in apply()
429 INV(status); in apply()
438 if (status.get().exited()) { in apply()
440 if (_argument.get() == status.get().exitstatus()) in apply()
447 _argument.get() % status.get().exitstatus()); in apply()
452 format_status(status.get())); in apply()
455 if (status.get().exited() && status.get().exitstatus() == EXIT_SUCCESS) in apply()
460 format_status(status.get())); in apply()
463 if (status.get().signaled()) { in apply()
465 if (_argument.get() == status.get().termsig()) in apply()
472 _argument.get() % status.get().termsig()); in apply()
477 format_status(status.get())); in apply()
481 format_status(status.get())); in apply()
484 if (status.get().exited() && status.get().exitstatus() == EXIT_FAILURE) in apply()
489 format_status(status.get())); in apply()
492 if (status.get().exited() && status.get().exitstatus() == EXIT_SUCCESS) in apply()
497 format_status(status.get())); in apply()
500 if (status.get().exited() && status.get().exitstatus() == EXIT_SUCCESS) in apply()
505 format_status(status.get())); in apply()
619 engine::calculate_atf_result(const optional< process::status >& body_status, in calculate_atf_result()