Lines Matching defs:line
84 atf_utils_create_file("file.txt", "This is a single line\n");
92 ATF_REQUIRE_STREQ("PREFIXThis is a single line\n", buffer);
98 atf_utils_create_file("file.txt", "First\nSecond line\nAnd third\n");
106 ATF_REQUIRE_STREQ(">First\n>Second line\n>And third\n", buffer);
285 atf_utils_create_file("test.txt", "line1\nthe second line\naaaabbbb\n");
288 ATF_CHECK(atf_utils_grep_file("line%d", "test.txt", 1));
289 ATF_CHECK(atf_utils_grep_file("second line", "test.txt"));
323 const char *l1 = "First line with % formatting % characters %";
324 const char *l2 = "Second line; much longer than the first one";
325 const char *l3 = "Last line, without terminator";
332 char *line;
334 line = atf_utils_readline(fd);
335 ATF_REQUIRE_STREQ(l1, line);
336 free(line);
338 line = atf_utils_readline(fd);
339 ATF_REQUIRE_STREQ(l2, line);
340 free(line);
342 line = atf_utils_readline(fd);
343 ATF_REQUIRE_STREQ(l3, line);
344 free(line);