Lines Matching +full:flags +full:- +full:mask
22 #include "io/channel-file.h"
23 #include "io/channel-util.h"
24 #include "io-channel-helpers.h"
28 #define TEST_FILE "tests/test-io-channel-file.txt"
33 * the FAT-style READONLY attribute and does not look at the ACL at all.
41 static void test_io_channel_file_helper(int flags) in test_io_channel_file_helper() argument
46 mode_t mask; in test_io_channel_file_helper() local
52 flags, TEST_MASK, in test_io_channel_file_helper()
65 mask = umask(0); in test_io_channel_file_helper()
66 umask(mask); in test_io_channel_file_helper()
68 g_assert_cmpint(ret, >, -1); in test_io_channel_file_helper()
69 g_assert_cmpuint(TEST_MASK & ~mask, ==, st.st_mode & TEST_MASK_EXPECT); in test_io_channel_file_helper()
89 int fd = -1; in test_io_channel_fd()
92 g_assert_cmpint(fd, >, -1); in test_io_channel_fd()