Lines Matching refs:tf
37 TemporaryFile tf; in TEST() local
38 ASSERT_TRUE(tf.fd != -1); in TEST()
39 EXPECT_TRUE(write_file(tf.path, s)) << strerror(errno); in TEST()
40 EXPECT_NE(-1, fchmodat(AT_FDCWD, tf.path, 0620, AT_SYMLINK_NOFOLLOW)) << strerror(errno); in TEST()
41 EXPECT_FALSE(read_file(tf.path, &s)) << strerror(errno); in TEST()
47 TemporaryFile tf; in TEST() local
48 ASSERT_TRUE(tf.fd != -1); in TEST()
49 EXPECT_TRUE(write_file(tf.path, s.c_str())) << strerror(errno); in TEST()
50 EXPECT_NE(-1, fchmodat(AT_FDCWD, tf.path, 0602, AT_SYMLINK_NOFOLLOW)) << strerror(errno); in TEST()
51 EXPECT_FALSE(read_file(tf.path, &s)) << strerror(errno); in TEST()
80 TemporaryFile tf; in TEST() local
81 ASSERT_TRUE(tf.fd != -1); in TEST()
82 EXPECT_TRUE(write_file(tf.path, contents)) << strerror(errno); in TEST()
85 EXPECT_TRUE(read_file(tf.path, &read_back_contents)) << strerror(errno); in TEST()
108 TemporaryFile tf; in TEST() local
109 ASSERT_TRUE(tf.fd != -1); in TEST()
110 EXPECT_TRUE(write_file(tf.path, "1hello1")) << strerror(errno); in TEST()
111 EXPECT_TRUE(read_file(tf.path, &s2)); in TEST()
113 EXPECT_TRUE(write_file(tf.path, "2ll2")); in TEST()
114 EXPECT_TRUE(read_file(tf.path, &s2)); in TEST()