Lines Matching refs:state
355 handle_result(const std::string& state, const std::string& arg,
358 assert(state == "passed");
361 throw std::runtime_error("The test case result '" + state + "' cannot "
364 return impl::test_case_result(state, -1, reason);
368 handle_result_with_reason(const std::string& state, const std::string& arg,
371 assert(state == "expected_death" || state == "expected_failure" ||
372 state == "expected_timeout" || state == "failed" || state == "skipped");
375 throw std::runtime_error("The test case result '" + state + "' must "
378 return impl::test_case_result(state, -1, reason);
382 handle_result_with_reason_and_arg(const std::string& state,
386 assert(state == "expected_exit" || state == "expected_signal");
389 throw std::runtime_error("The test case result '" + state + "' must "
400 state + "' state must be an integer");
404 return impl::test_case_result(state, value, reason);
542 std::string state, arg, reason;
543 tokenize_result(line, state, arg, reason);
545 if (state == "expected_death")
546 return handle_result_with_reason(state, arg, reason);
547 else if (state.compare(0, 13, "expected_exit") == 0)
548 return handle_result_with_reason_and_arg(state, arg, reason);
549 else if (state.compare(0, 16, "expected_failure") == 0)
550 return handle_result_with_reason(state, arg, reason);
551 else if (state.compare(0, 15, "expected_signal") == 0)
552 return handle_result_with_reason_and_arg(state, arg, reason);
553 else if (state.compare(0, 16, "expected_timeout") == 0)
554 return handle_result_with_reason(state, arg, reason);
555 else if (state == "failed")
556 return handle_result_with_reason(state, arg, reason);
557 else if (state == "passed")
558 return handle_result(state, arg, reason);
559 else if (state == "skipped")
560 return handle_result_with_reason(state, arg, reason);
639 impl::atf_tps_writer::end_tc(const std::string& state,
642 std::string str = ", " + m_tcname + ", " + state;