Lines Matching defs:const
84 static const atf::parser::token_type eof_type = 0;
85 static const atf::parser::token_type nl_type = 1;
86 static const atf::parser::token_type text_type = 2;
87 static const atf::parser::token_type colon_type = 3;
88 static const atf::parser::token_type dblquote_type = 4;
106 void got_tc(const std::string& ident, const atf::tests::vars_map& props)
126 const impl::test_cases_map&
128 const
135 const atf::fs::path& executable;
136 const atf::tests::vars_map& config;
138 get_metadata_params(const atf::fs::path& p_executable,
139 const atf::tests::vars_map& p_config) :
147 const atf::fs::path& executable;
148 const std::string& test_case_name;
149 const std::string& test_case_part;
150 const atf::tests::vars_map& metadata;
151 const atf::tests::vars_map& config;
152 const atf::fs::path& resfile;
153 const atf::fs::path& workdir;
155 test_case_params(const atf::fs::path& p_executable,
156 const std::string& p_test_case_name,
157 const std::string& p_test_case_part,
158 const atf::tests::vars_map& p_metadata,
159 const atf::tests::vars_map& p_config,
160 const atf::fs::path& p_resfile,
161 const atf::fs::path& p_workdir) :
182 const int len = snprintf(buf, sizeof(buf), "%ld.%ld",
194 const std::vector< std::string >& v2)
202 vector_to_argv(const std::vector< std::string >& v)
214 exec_or_exit(const atf::fs::path& executable,
215 const std::vector< std::string >& argv)
219 char* const* native_argv = vector_to_argv(argv);
223 const std::string message = "Failed to execute '" + executable.str() +
232 config_to_args(const atf::tests::vars_map& config)
256 prepare_child(const atf::fs::path& workdir)
258 const int ret = ::setpgid(::getpid(), 0);
288 const get_metadata_params* params =
289 static_cast< const get_metadata_params* >(raw_params);
303 const test_case_params* params =
304 static_cast< const test_case_params* >(raw_params);
306 const std::pair< int, int > user = impl::get_required_user(
313 const atf::fs::path absolute_executable = params->executable.to_absolute();
330 tokenize_result(const std::string& line, std::string& out_state,
333 const std::string::size_type pos = line.find_first_of(":(");
343 const std::string::size_type pos2 = line.find("):", pos);
355 handle_result(const std::string& state, const std::string& arg,
356 const std::string& reason)
368 handle_result_with_reason(const std::string& state, const std::string& arg,
369 const std::string& reason)
382 handle_result_with_reason_and_arg(const std::string& state,
383 const std::string& arg,
384 const std::string& reason)
398 } catch (const std::runtime_error&) {
420 const std::string& ident ATF_DEFS_ATTRIBUTE_UNUSED,
421 const std::map< std::string, std::string >& md ATF_DEFS_ATTRIBUTE_UNUSED)
431 detail::atf_tp_reader::validate_and_insert(const std::string& name,
432 const std::string& value, const size_t lineno,
441 const std::string ident_regex = "^[_A-Za-z0-9]+$";
442 const std::string integer_regex = "^[0-9]+$";
449 } catch (const std::runtime_error&) {
464 } catch (const std::runtime_error&) {
507 const std::string name = t.text();
509 const std::string value = atf::text::trim(p.rest_of_line());
516 const std::map< std::string, std::string >::const_iterator
533 } catch (const parse_error& pe) {
540 detail::parse_test_case_result(const std::string& line)
578 impl::atf_tps_writer::info(const std::string& what, const std::string& val)
592 impl::atf_tps_writer::start_tp(const std::string& tp, size_t ntcs)
601 impl::atf_tps_writer::end_tp(const std::string& reason)
613 impl::atf_tps_writer::start_tc(const std::string& tcname)
621 impl::atf_tps_writer::stdout_tc(const std::string& line)
630 impl::atf_tps_writer::stderr_tc(const std::string& line)
639 impl::atf_tps_writer::end_tc(const std::string& state,
640 const std::string& reason)
650 impl::get_metadata(const atf::fs::path& executable,
651 const atf::tests::vars_map& config)
665 const atf::process::status status = child.wait();
674 impl::read_test_case_result(const atf::fs::path& results_path)
698 sigchld_handler(const int signo ATF_DEFS_ATTRIBUTE_UNUSED)
707 line_callback(const size_t index, const std::string& line)
717 child_muxer(const int* fds, const size_t nfds,
728 impl::run_test_case(const atf::fs::path& executable,
729 const std::string& test_case_name,
730 const std::string& test_case_part,
731 const atf::tests::vars_map& metadata,
732 const atf::tests::vars_map& config,
733 const atf::fs::path& resfile,
734 const atf::fs::path& workdir,
750 const atf::tests::vars_map::const_iterator iter = metadata.find("timeout");
752 const unsigned int timeout =
754 const pid_t child_pid = child.pid();