Lines Matching refs:ATF_REQUIRE
264 ATF_REQUIRE(pid != -1);
284 ATF_REQUIRE(::waitpid(pid, &status, 0) != -1);
285 ATF_REQUIRE(WIFEXITED(status));
287 ATF_REQUIRE(atf::utils::grep_file("stdout: Z", "stdout.txt"));
288 ATF_REQUIRE(atf::utils::grep_file("stderr: Z", "stderr.txt"));
313 ATF_REQUIRE(std::getline(output, line).good());
319 ATF_REQUIRE(std::getline(output, line).good());
323 ATF_REQUIRE(status.exited());
353 ATF_REQUIRE(atf::utils::grep_string("pipe.*failed", e.what()));
374 ATF_REQUIRE(status.signaled());
375 ATF_REQUIRE(fs::exists(fs::path("to-not-be-deleted")));
388 ATF_REQUIRE(status.signaled());
389 ATF_REQUIRE(fs::exists(fs::path("to-not-be-deleted")));
409 ATF_REQUIRE(atf::utils::grep_string("fork.*failed", e.what()));
424 ATF_REQUIRE(status.exited());
427 ATF_REQUIRE( atf::utils::grep_file("^To stdout: Z$", file1.str()));
428 ATF_REQUIRE(!atf::utils::grep_file("^To stdout: Z$", file2.str()));
430 ATF_REQUIRE( atf::utils::grep_file("^To stderr: Z$", file2.str()));
431 ATF_REQUIRE(!atf::utils::grep_file("^To stderr: Z$", file1.str()));
447 ATF_REQUIRE(status.exited());
450 ATF_REQUIRE( atf::utils::grep_file("^Initial stdout$", filea.str()));
451 ATF_REQUIRE(!atf::utils::grep_file("^Initial stdout$", fileb.str()));
453 ATF_REQUIRE( atf::utils::grep_file("^To stdout: a functor$", filea.str()));
454 ATF_REQUIRE(!atf::utils::grep_file("^To stdout: a functor$", fileb.str()));
456 ATF_REQUIRE( atf::utils::grep_file("^Initial stderr$", fileb.str()));
457 ATF_REQUIRE(!atf::utils::grep_file("^Initial stderr$", filea.str()));
459 ATF_REQUIRE( atf::utils::grep_file("^To stderr: a functor$", fileb.str()));
460 ATF_REQUIRE(!atf::utils::grep_file("^To stderr: a functor$", filea.str()));
493 ATF_REQUIRE(status.signaled());
494 ATF_REQUIRE(fs::exists(fs::path("to-not-be-deleted")));
508 ATF_REQUIRE(status.signaled());
509 ATF_REQUIRE(fs::exists(fs::path("to-not-be-deleted")));
530 ATF_REQUIRE(atf::utils::grep_string("fork.*failed", e.what()));
533 ATF_REQUIRE(!fs::exists(fs::path("a.txt")));
534 ATF_REQUIRE(!fs::exists(fs::path("b.txt")));
546 ATF_REQUIRE(status.signaled());
548 ATF_REQUIRE(!fs::exists(fs::path("raise-error")));
549 ATF_REQUIRE(!fs::exists(fs::path("created")));
561 ATF_REQUIRE(status.signaled());
563 ATF_REQUIRE(fs::exists(fs::path("created")));
564 ATF_REQUIRE(!fs::exists(fs::path("raise-error")));
581 ATF_REQUIRE(status.exited());
593 ATF_REQUIRE(::mkdir("root", 0755) != -1);
594 ATF_REQUIRE(::symlink(get_helpers(this).c_str(), "root/helpers") != -1);
600 ATF_REQUIRE(status.exited());
612 ATF_REQUIRE(::symlink(get_helpers(this).c_str(), "helpers") != -1);
618 ATF_REQUIRE(status.exited());
638 ATF_REQUIRE(std::getline(child->output(), line).good());
640 ATF_REQUIRE(!std::getline(child->output(), line));
643 ATF_REQUIRE(status.signaled());
656 ATF_REQUIRE(std::getline(child->output(), line).good());
658 ATF_REQUIRE(!std::getline(child->output(), line));
661 ATF_REQUIRE(status.exited());
677 ATF_REQUIRE(std::getline(child->output(), line).good());
679 ATF_REQUIRE(std::getline(child->output(), line).good());
681 ATF_REQUIRE(std::getline(child->output(), line));
683 ATF_REQUIRE(std::getline(child->output(), line));
685 ATF_REQUIRE(std::getline(child->output(), line));
687 ATF_REQUIRE(!std::getline(child->output(), line));
690 ATF_REQUIRE(status.exited());
703 ATF_REQUIRE(std::getline(child->output(), line).good());
706 ATF_REQUIRE(!std::getline(child->output(), line));
709 ATF_REQUIRE(status.signaled());
723 ATF_REQUIRE(status.exited());
727 ATF_REQUIRE(input);