Lines Matching refs:utils
38 namespace fs = utils::fs;
44 const pid_t pid = atf::utils::fork(); in ATF_TEST_CASE_BODY()
46 std::auto_ptr< std::ostream > output = utils::open_ostream( in ATF_TEST_CASE_BODY()
52 atf::utils::wait(pid, EXIT_SUCCESS, "Message to stdout\n", ""); in ATF_TEST_CASE_BODY()
59 const pid_t pid = atf::utils::fork(); in ATF_TEST_CASE_BODY()
61 std::auto_ptr< std::ostream > output = utils::open_ostream( in ATF_TEST_CASE_BODY()
67 atf::utils::wait(pid, EXIT_SUCCESS, "", "Message to stderr\n"); in ATF_TEST_CASE_BODY()
74 const pid_t pid = atf::utils::fork(); in ATF_TEST_CASE_BODY()
76 std::auto_ptr< std::ostream > output = utils::open_ostream( in ATF_TEST_CASE_BODY()
82 atf::utils::wait(pid, EXIT_SUCCESS, "", ""); in ATF_TEST_CASE_BODY()
83 atf::utils::compare_file("some-file.txt", "Message to other file\n"); in ATF_TEST_CASE_BODY()
91 ATF_REQUIRE_EQ(0, utils::stream_length(input)); in ATF_TEST_CASE_BODY()
102 static_cast< std::string::size_type >(utils::stream_length(input))); in ATF_TEST_CASE_BODY()
110 atf::utils::create_file("input.txt", contents); in ATF_TEST_CASE_BODY()
111 ATF_REQUIRE_EQ(contents, utils::read_file(fs::path("input.txt"))); in ATF_TEST_CASE_BODY()
120 utils::read_file(fs::path("foo.txt"))); in ATF_TEST_CASE_BODY()
128 ATF_REQUIRE_EQ("", utils::read_stream(input)); in ATF_TEST_CASE_BODY()
139 ATF_REQUIRE_EQ(contents, utils::read_stream(input)); in ATF_TEST_CASE_BODY()