Lines Matching refs:ATF_REQUIRE
59 ATF_REQUIRE(length != -1);
124 ATF_REQUIRE(atf::utils::compare_file("test.txt", ""));
131 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n"));
132 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "foo"));
133 ATF_REQUIRE(!atf::utils::compare_file("test.txt", " "));
140 ATF_REQUIRE(atf::utils::compare_file("test.txt", "this is a short file"));
147 ATF_REQUIRE(!atf::utils::compare_file("test.txt", ""));
148 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n"));
149 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "this is a Short file"));
150 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "this is a short fil"));
151 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "this is a short file "));
164 ATF_REQUIRE(atf::utils::compare_file("test.txt", long_contents));
177 ATF_REQUIRE(!atf::utils::compare_file("test.txt", ""));
178 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "\n"));
179 ATF_REQUIRE(!atf::utils::compare_file("test.txt", "0123456789"));
181 ATF_REQUIRE(!atf::utils::compare_file("test.txt", long_contents));
188 ATF_REQUIRE(chmod("src.txt", 0520) != -1);
191 ATF_REQUIRE(atf::utils::compare_file("dest.txt", ""));
193 ATF_REQUIRE(stat("dest.txt", &sb) != -1);
202 ATF_REQUIRE(atf::utils::compare_file("dest.txt", "This is a\ntest file\n"));
218 ATF_REQUIRE( atf::utils::file_exists("test.txt"));
219 ATF_REQUIRE( atf::utils::file_exists("./test.txt"));
220 ATF_REQUIRE(!atf::utils::file_exists("./test.tx"));
221 ATF_REQUIRE(!atf::utils::file_exists("test.txt2"));
237 ATF_REQUIRE(waitpid(pid, &status, 0) != -1);
238 ATF_REQUIRE(WIFEXITED(status));
252 ATF_REQUIRE( atf::utils::grep_collection("irs", strings));
253 ATF_REQUIRE( atf::utils::grep_collection("cond", strings));
254 ATF_REQUIRE(!atf::utils::grep_collection("Third", strings));
264 ATF_REQUIRE( atf::utils::grep_collection("irs", strings));
265 ATF_REQUIRE( atf::utils::grep_collection("cond", strings));
266 ATF_REQUIRE(!atf::utils::grep_collection("Third", strings));
274 ATF_REQUIRE(atf::utils::grep_file("line1", "test.txt"));
275 ATF_REQUIRE(atf::utils::grep_file("second line", "test.txt"));
276 ATF_REQUIRE(atf::utils::grep_file("aa.*bb", "test.txt"));
277 ATF_REQUIRE(!atf::utils::grep_file("foo", "test.txt"));
278 ATF_REQUIRE(!atf::utils::grep_file("bar", "test.txt"));
279 ATF_REQUIRE(!atf::utils::grep_file("aaaaa", "test.txt"));
286 ATF_REQUIRE(atf::utils::grep_string("a string", str));
287 ATF_REQUIRE(atf::utils::grep_string("^a string", str));
288 ATF_REQUIRE(atf::utils::grep_string("aaaabbbb$", str));
289 ATF_REQUIRE(atf::utils::grep_string("aa.*bb", str));
290 ATF_REQUIRE(!atf::utils::grep_string("foo", str));
291 ATF_REQUIRE(!atf::utils::grep_string("bar", str));
292 ATF_REQUIRE(!atf::utils::grep_string("aaaaa", str));
322 ATF_REQUIRE(write(15, message.c_str(), message.length()) != -1);
345 ATF_REQUIRE(control != -1);
350 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
351 ATF_REQUIRE(WIFEXITED(status));
360 ATF_REQUIRE(control != -1);
365 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
366 ATF_REQUIRE(WIFEXITED(status));
375 ATF_REQUIRE(control != -1);
380 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
381 ATF_REQUIRE(WIFEXITED(status));
390 ATF_REQUIRE(control != -1);
395 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
396 ATF_REQUIRE(WIFEXITED(status));
405 ATF_REQUIRE(control != -1);
410 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
411 ATF_REQUIRE(WIFEXITED(status));
414 ATF_REQUIRE(atf::utils::compare_file("my-output.txt", "Some output\n"));
422 ATF_REQUIRE(control != -1);
427 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
428 ATF_REQUIRE(WIFEXITED(status));
431 ATF_REQUIRE(atf::utils::compare_file("my-output.txt", "Some error\n"));