Lines Matching full:open
43 class Open: public FuseTest {
47 /* Test an OK open of a file with the given flags */
58 in.body.open.flags == (uint32_t)fuse_flags &&
64 SET_OUT_HEADER_LEN(out, open);
67 fd = open(FULLPATH, os_flags);
77 TEST_F(Open, chr)
93 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY));
100 * kernel checked for it with lookup and tried to open it
102 TEST_F(Open, enoent)
123 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY));
134 TEST_F(Open, eperm)
148 ASSERT_EQ(-1, open(FULLPATH, O_RDONLY));
154 * credentials open the same file, even if they use the same mode. This is
157 TEST_F(Open, multiple_creds)
165 /* Fork a child to open the file with different credentials */
178 out.body.open.fh = fh0;
180 SET_OUT_HEADER_LEN(out, open);
192 out.body.open.fh = fh1;
194 SET_OUT_HEADER_LEN(out, open);
200 fd1 = open(FULLPATH, O_RDONLY);
205 fd0 = open(FULLPATH, O_RDONLY);
207 perror("open");
220 TEST_F(Open, DISABLED_o_append)
226 TEST_F(Open, o_creat)
232 TEST_F(Open, DISABLED_o_direct)
238 TEST_F(Open, o_excl)
243 TEST_F(Open, o_exec)
249 TEST_F(Open, o_noctty)
254 TEST_F(Open, o_rdonly)
260 TEST_F(Open, DISABLED_o_trunc)
265 TEST_F(Open, o_wronly)
270 TEST_F(Open, o_rdwr)
280 TEST_F(Open, enosys)
291 in.body.open.flags == (uint32_t)O_RDONLY &&
299 fd = open(FULLPATH, O_RDONLY);
303 fd = open(FULLPATH, O_RDONLY);