Lines Matching refs:buffer

59 read_file(const char *path, void *const buffer, const size_t buflen)  in read_file()  argument
63 const ssize_t length = read(fd, buffer, buflen - 1); in read_file()
66 ((char *)buffer)[length] = '\0'; in read_file()
79 char buffer[1024]; in ATF_TC_BODY() local
80 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
81 ATF_REQUIRE_STREQ("", buffer); in ATF_TC_BODY()
93 char buffer[1024]; in ATF_TC_BODY() local
94 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
95 ATF_REQUIRE_STREQ("PREFIXThis is a single line\n", buffer); in ATF_TC_BODY()
107 char buffer[1024]; in ATF_TC_BODY() local
108 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
109 ATF_REQUIRE_STREQ(">First\n>Second line\n>And third\n", buffer); in ATF_TC_BODY()
121 char buffer[1024]; in ATF_TC_BODY() local
122 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
123 ATF_REQUIRE_STREQ("PREFIXFoo\nPREFIX bar baz", buffer); in ATF_TC_BODY()
216 char buffer[128]; in ATF_TC_BODY() local
217 read_file("test.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
218 ATF_REQUIRE_STREQ("This is a test with 12345", buffer); in ATF_TC_BODY()
249 char buffer[1024]; in ATF_TC_BODY() local
250 read_file("atf_utils_fork_out.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
251 ATF_REQUIRE_STREQ("Child stdout\n", buffer); in ATF_TC_BODY()
252 read_file("atf_utils_fork_err.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
253 ATF_REQUIRE_STREQ("Child stderr\n", buffer); in ATF_TC_BODY()
352 char buffer[1024]; in ATF_TC_BODY() local
353 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
354 ATF_REQUIRE_STREQ("The printed message", buffer); in ATF_TC_BODY()
365 char buffer[1024]; in ATF_TC_BODY() local
366 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
367 ATF_REQUIRE_STREQ("The printed message", buffer); in ATF_TC_BODY()
378 char buffer[1024]; in ATF_TC_BODY() local
379 read_file("captured.txt", buffer, sizeof(buffer)); in ATF_TC_BODY()
380 ATF_REQUIRE_STREQ(message, buffer); in ATF_TC_BODY()