Home | History | Annotate | Download | only in init

Lines Matching refs:tf

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