Lines Matching refs:line
87 atf_utils_create_file("file.txt", "This is a single line\n");
95 ATF_REQUIRE_STREQ("PREFIXThis is a single line\n", buffer);
101 atf_utils_create_file("file.txt", "First\nSecond line\nAnd third\n");
109 ATF_REQUIRE_STREQ(">First\n>Second line\n>And third\n", buffer);
280 atf_utils_create_file("test.txt", "line1\nthe second line\naaaabbbb\n");
283 ATF_CHECK(atf_utils_grep_file("line%d", "test.txt", 1));
284 ATF_CHECK(atf_utils_grep_file("second line", "test.txt"));
318 const char *l1 = "First line with % formatting % characters %";
319 const char *l2 = "Second line; much longer than the first one";
320 const char *l3 = "Last line, without terminator";
327 char *line;
329 line = atf_utils_readline(fd);
330 ATF_REQUIRE_STREQ(l1, line);
331 free(line);
333 line = atf_utils_readline(fd);
334 ATF_REQUIRE_STREQ(l2, line);
335 free(line);
337 line = atf_utils_readline(fd);
338 ATF_REQUIRE_STREQ(l3, line);
339 free(line);