Lines Matching refs:file
41 _cleanup_fclose_ FILE *file = NULL; in TEST() local
46 assert_se(fmkostemp_safe(name, "r+", &file) == 0); in TEST()
48 assert_se(fputs("c\n", file) >= 0); in TEST()
49 rewind(file); in TEST()
50 assert_se(read_one_char(file, &r, 1000000, &need_nl) >= 0); in TEST()
53 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0); in TEST()
55 rewind(file); in TEST()
56 assert_se(fputs("foobar\n", file) >= 0); in TEST()
57 rewind(file); in TEST()
58 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0); in TEST()
60 rewind(file); in TEST()
61 assert_se(fputs("\n", file) >= 0); in TEST()
62 rewind(file); in TEST()
63 assert_se(read_one_char(file, &r, 1000000, &need_nl) < 0); in TEST()