Lines Matching refs:ATF_REQUIRE
65 ATF_REQUIRE(length != -1);
130 ATF_REQUIRE(atf_utils_compare_file("test.txt", ""));
137 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n"));
138 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "foo"));
139 ATF_REQUIRE(!atf_utils_compare_file("test.txt", " "));
146 ATF_REQUIRE(atf_utils_compare_file("test.txt", "this is a short file"));
153 ATF_REQUIRE(!atf_utils_compare_file("test.txt", ""));
154 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n"));
155 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "this is a Short file"));
156 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "this is a short fil"));
157 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "this is a short file "));
170 ATF_REQUIRE(atf_utils_compare_file("test.txt", long_contents));
183 ATF_REQUIRE(!atf_utils_compare_file("test.txt", ""));
184 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "\n"));
185 ATF_REQUIRE(!atf_utils_compare_file("test.txt", "0123456789"));
187 ATF_REQUIRE(!atf_utils_compare_file("test.txt", long_contents));
194 ATF_REQUIRE(chmod("src.txt", 0520) != -1);
197 ATF_REQUIRE(atf_utils_compare_file("dest.txt", ""));
199 ATF_REQUIRE(stat("dest.txt", &sb) != -1);
208 ATF_REQUIRE(atf_utils_compare_file("dest.txt", "This is a\ntest file\n"));
226 ATF_REQUIRE( atf_utils_file_exists("test.txt"));
227 ATF_REQUIRE( atf_utils_file_exists("./test.txt"));
228 ATF_REQUIRE(!atf_utils_file_exists("./test.tx"));
229 ATF_REQUIRE(!atf_utils_file_exists("test.txt2"));
245 ATF_REQUIRE(waitpid(pid, &status, 0) != -1);
246 ATF_REQUIRE(WIFEXITED(status));
310 ATF_REQUIRE(fd != -1);
311 ATF_REQUIRE(atf_utils_readline(fd) == NULL);
325 ATF_REQUIRE(fd != -1);
375 ATF_REQUIRE(write(15, message, strlen(message)) != -1);
400 ATF_REQUIRE(control != -1);
405 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
406 ATF_REQUIRE(WIFEXITED(status));
415 ATF_REQUIRE(control != -1);
420 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
421 ATF_REQUIRE(WIFEXITED(status));
430 ATF_REQUIRE(control != -1);
435 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
436 ATF_REQUIRE(WIFEXITED(status));
445 ATF_REQUIRE(control != -1);
450 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
451 ATF_REQUIRE(WIFEXITED(status));
460 ATF_REQUIRE(control != -1);
465 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
466 ATF_REQUIRE(WIFEXITED(status));
469 ATF_REQUIRE(atf_utils_compare_file("my-output.txt", "Some output\n"));
477 ATF_REQUIRE(control != -1);
482 ATF_REQUIRE(waitpid(control, &status, 0) != -1);
483 ATF_REQUIRE(WIFEXITED(status));
486 ATF_REQUIRE(atf_utils_compare_file("my-output.txt", "Some error\n"));