Lines Matching refs:sb
58 struct stat sb; in TEST() local
59 ASSERT_EQ(0, stat(path.c_str(), &sb)) << strerror(errno); in TEST()
60 ASSERT_TRUE(S_ISDIR(sb.st_mode)); in TEST()
62 ASSERT_EQ(mode, sb.st_mode & mask); in TEST()
76 struct stat sb; in TEST() local
77 ASSERT_EQ(0, stat((prefix + "/a").c_str(), &sb)) << strerror(errno); in TEST()
78 ASSERT_TRUE(S_ISDIR(sb.st_mode)); in TEST()
80 ASSERT_EQ(-1, stat(path.c_str(), &sb)); in TEST()
95 struct stat sb; in TEST() local
96 ASSERT_EQ(0, stat(path.c_str(), &sb)) << strerror(errno); in TEST()
97 ASSERT_TRUE(S_ISDIR(sb.st_mode)); in TEST()
99 ASSERT_EQ(mode, sb.st_mode & mask); in TEST()
102 ASSERT_EQ(0, stat((prefix + "/a").c_str(), &sb)) << strerror(errno); in TEST()
103 ASSERT_TRUE(S_ISDIR(sb.st_mode)); in TEST()
104 ASSERT_EQ(mode, sb.st_mode & mask); in TEST()