Lines Matching refs:ATF_REQUIRE

112     ATF_REQUIRE( path("/").is_absolute());
113 ATF_REQUIRE( path("////").is_absolute());
114 ATF_REQUIRE( path("////a").is_absolute());
115 ATF_REQUIRE( path("//a//").is_absolute());
116 ATF_REQUIRE(!path("a////").is_absolute());
117 ATF_REQUIRE(!path("../foo").is_absolute());
129 ATF_REQUIRE( path("/").is_root());
130 ATF_REQUIRE( path("////").is_root());
131 ATF_REQUIRE(!path("////a").is_root());
132 ATF_REQUIRE(!path("//a//").is_root());
133 ATF_REQUIRE(!path("a////").is_root());
134 ATF_REQUIRE(!path("../foo").is_root());
178 ATF_REQUIRE(path("/") == path("///"));
179 ATF_REQUIRE(path("/a") == path("///a"));
180 ATF_REQUIRE(path("/a") == path("///a///"));
182 ATF_REQUIRE(path("a/b/c") == path("a//b//c"));
183 ATF_REQUIRE(path("a/b/c") == path("a//b//c///"));
195 ATF_REQUIRE(path("/") != path("//a/"));
196 ATF_REQUIRE(path("/a") != path("a///"));
198 ATF_REQUIRE(path("a/b/c") != path("a/b"));
199 ATF_REQUIRE(path("a/b/c") != path("a//b"));
200 ATF_REQUIRE(path("a/b/c") != path("/a/b/c"));
201 ATF_REQUIRE(path("a/b/c") != path("/a//b//c"));
235 ATF_REQUIRE(pa.is_absolute());
246 ATF_REQUIRE(pa.is_absolute());
266 ATF_REQUIRE(!(path("aaa") < path("aaa")));
268 ATF_REQUIRE( path("aab") < path("abc"));
269 ATF_REQUIRE(!(path("abc") < path("aab")));
291 ATF_REQUIRE(d.find(".") != d.end());
292 ATF_REQUIRE(d.find("..") != d.end());
293 ATF_REQUIRE(d.find("dir") != d.end());
294 ATF_REQUIRE(d.find("reg") != d.end());
315 ATF_REQUIRE(iter != d.end());
317 ATF_REQUIRE(fi.get_type() == file_info::dir_type);
322 ATF_REQUIRE(iter != d.end());
324 ATF_REQUIRE(fi.get_type() == file_info::reg_type);
343 ATF_REQUIRE(ns.find(".") != ns.end());
344 ATF_REQUIRE(ns.find("..") != ns.end());
345 ATF_REQUIRE(ns.find("dir") != ns.end());
346 ATF_REQUIRE(ns.find("reg") != ns.end());
368 ATF_REQUIRE(fi.get_type() == file_info::dir_type);
374 ATF_REQUIRE(fi.get_type() == file_info::reg_type);
397 ATF_REQUIRE(fi.is_owner_readable() == ur); \
398 ATF_REQUIRE(fi.is_owner_writable() == uw); \
399 ATF_REQUIRE(fi.is_owner_executable() == ux); \
400 ATF_REQUIRE(fi.is_group_readable() == gr); \
401 ATF_REQUIRE(fi.is_group_writable() == gw); \
402 ATF_REQUIRE(fi.is_group_executable() == gx); \
403 ATF_REQUIRE(fi.is_other_readable() == othr); \
404 ATF_REQUIRE(fi.is_other_writable() == othw); \
405 ATF_REQUIRE(fi.is_other_executable() == othx); \
470 ATF_REQUIRE(t1.str().find("XXXXXX") == std::string::npos);
471 ATF_REQUIRE(t2.str().find("XXXXXX") == std::string::npos);
472 ATF_REQUIRE(t1 != t2);
473 ATF_REQUIRE(!tools::fs::exists(tmpl));
474 ATF_REQUIRE( tools::fs::exists(t1));
475 ATF_REQUIRE( tools::fs::exists(t2));
478 ATF_REQUIRE( fi1.is_owner_readable());
479 ATF_REQUIRE( fi1.is_owner_writable());
480 ATF_REQUIRE( fi1.is_owner_executable());
481 ATF_REQUIRE(!fi1.is_group_readable());
482 ATF_REQUIRE(!fi1.is_group_writable());
483 ATF_REQUIRE(!fi1.is_group_executable());
484 ATF_REQUIRE(!fi1.is_other_readable());
485 ATF_REQUIRE(!fi1.is_other_writable());
486 ATF_REQUIRE(!fi1.is_other_executable());
489 ATF_REQUIRE( fi2.is_owner_readable());
490 ATF_REQUIRE( fi2.is_owner_writable());
491 ATF_REQUIRE( fi2.is_owner_executable());
492 ATF_REQUIRE(!fi2.is_group_readable());
493 ATF_REQUIRE(!fi2.is_group_writable());
494 ATF_REQUIRE(!fi2.is_group_executable());
495 ATF_REQUIRE(!fi2.is_other_readable());
496 ATF_REQUIRE(!fi2.is_other_writable());
497 ATF_REQUIRE(!fi2.is_other_executable());
500 ATF_REQUIRE(t1.str() != "non-existent");
501 ATF_REQUIRE(!tools::fs::exists(t1));
502 ATF_REQUIRE(t2.str() != "non-existent");
503 ATF_REQUIRE(!tools::fs::exists(t2));
523 ATF_REQUIRE( exists(path("files")));
524 ATF_REQUIRE(!exists(path("file")));
525 ATF_REQUIRE(!exists(path("files2")));
527 ATF_REQUIRE( exists(path("files/.")));
528 ATF_REQUIRE( exists(path("files/..")));
529 ATF_REQUIRE( exists(path("files/dir")));
530 ATF_REQUIRE( exists(path("files/reg")));
531 ATF_REQUIRE(!exists(path("files/foo")));
546 ATF_REQUIRE( is_executable(path("files")));
547 ATF_REQUIRE( is_executable(path("files/.")));
548 ATF_REQUIRE( is_executable(path("files/..")));
549 ATF_REQUIRE( is_executable(path("files/dir")));
551 ATF_REQUIRE(!is_executable(path("non-existent")));
553 ATF_REQUIRE(!is_executable(path("files/reg")));
554 ATF_REQUIRE(::chmod("files/reg", 0755) != -1);
555 ATF_REQUIRE( is_executable(path("files/reg")));
571 ATF_REQUIRE( exists(path("files/reg")));
573 ATF_REQUIRE(!exists(path("files/reg")));
575 ATF_REQUIRE( exists(path("files/dir")));
577 ATF_REQUIRE( exists(path("files/dir")));
596 ATF_REQUIRE(tools::fs::exists(p));
597 ATF_REQUIRE(tools::fs::exists(p / "dir"));
598 ATF_REQUIRE(tools::fs::exists(p / "dir/1"));
599 ATF_REQUIRE(tools::fs::exists(p / "dir/2"));
600 ATF_REQUIRE(tools::fs::exists(p / "reg"));
602 ATF_REQUIRE(!tools::fs::exists(p));
616 ATF_REQUIRE(::chmod("aux", 0555) != -1);
620 ATF_REQUIRE(tools::user::is_root());
622 ATF_REQUIRE(!tools::user::is_root());
640 ATF_REQUIRE(::chmod("root/1/2", 0555) != -1);
641 ATF_REQUIRE(::chmod("root/1", 0555) != -1);
645 ATF_REQUIRE(!tools::fs::exists(p));
666 ATF_REQUIRE(get_current_dir() == old);
669 ATF_REQUIRE(old2 == old);
671 ATF_REQUIRE(old3 == old2 / "files");
673 ATF_REQUIRE(old4 == old3 / "dir");
674 ATF_REQUIRE(get_current_dir() == old);
693 ATF_REQUIRE(get_current_dir() == curdir);
695 ATF_REQUIRE(get_current_dir() == curdir / "files");
697 ATF_REQUIRE(get_current_dir() == curdir / "files/dir");
699 ATF_REQUIRE(get_current_dir() == curdir / "files");
701 ATF_REQUIRE(get_current_dir() == curdir);