Lines Matching refs:argv
69 std::vector< std::string > argv;
70 argv.push_back(helpers.leaf_name());
71 argv.push_back(helper_name);
74 tools::process::argv_array(argv),
93 tools::process::argv_array argv(carray);
95 ATF_REQUIRE_EQ(argv.size(), 0);
100 tools::process::argv_array argv(carray);
102 ATF_REQUIRE_EQ(argv.size(), 1);
103 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0);
108 tools::process::argv_array argv(carray);
110 ATF_REQUIRE_EQ(argv.size(), 3);
111 ATF_REQUIRE(std::strcmp(argv[0], carray[0]) == 0);
112 ATF_REQUIRE(std::strcmp(argv[1], carray[1]) == 0);
113 ATF_REQUIRE(std::strcmp(argv[2], carray[2]) == 0);
127 tools::process::argv_array argv(col);
129 ATF_REQUIRE_EQ(argv.size(), 0);
135 tools::process::argv_array argv(col);
137 ATF_REQUIRE_EQ(argv.size(), 1);
138 ATF_REQUIRE_EQ(argv[0], col[0]);
146 tools::process::argv_array argv(col);
148 ATF_REQUIRE_EQ(argv.size(), 3);
149 ATF_REQUIRE_EQ(argv[0], col[0]);
150 ATF_REQUIRE_EQ(argv[1], col[1]);
151 ATF_REQUIRE_EQ(argv[2], col[2]);
163 tools::process::argv_array argv;
165 ATF_REQUIRE_EQ(argv.size(), 0);
177 tools::process::argv_array argv("arg0", NULL);
179 ATF_REQUIRE_EQ(argv.size(), 1);
180 ATF_REQUIRE_EQ(argv[0], std::string("arg0"));
184 tools::process::argv_array argv("arg0", "arg1", "arg2", NULL);
186 ATF_REQUIRE_EQ(argv.size(), 3);
187 ATF_REQUIRE_EQ(argv[0], std::string("arg0"));
188 ATF_REQUIRE_EQ(argv[1], std::string("arg1"));
189 ATF_REQUIRE_EQ(argv[2], std::string("arg2"));
255 set_md_var("descr", "Tests that the exec argv provided by an argv_array "
263 argv_array argv;
264 const char* const* eargv = argv.exec_argv();
271 argv_array argv(carray);
272 const char* const* eargv = argv.exec_argv();
281 argv_array argv(col);
282 const char* const* eargv = argv.exec_argv();
303 argv_array argv(vector);
304 ATF_REQUIRE_EQ(argv.size(), 3);
306 for (argv_array::const_iterator iter = argv.begin(); iter != argv.end();