Lines Matching refs:st
29 struct stat st; in TEST() local
30 ASSERT_EQ(0, stat(td.path, &st)); in TEST()
31 ASSERT_FALSE(S_ISREG(st.st_mode)); in TEST()
32 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
34 ASSERT_EQ(0, stat((std::string(td.path) + '/').c_str(), &st)); in TEST()
35 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
38 ASSERT_EQ(0, stat((std::string(td.path) + '\\').c_str(), &st)); in TEST()
39 ASSERT_TRUE(S_ISDIR(st.st_mode)); in TEST()
43 ASSERT_EQ(-1, stat(nonexistent_path.c_str(), &st)); in TEST()
46 ASSERT_EQ(-1, stat((nonexistent_path + "/").c_str(), &st)); in TEST()
50 ASSERT_EQ(-1, stat((nonexistent_path + "\\").c_str(), &st)); in TEST()
54 ASSERT_EQ(0, stat(tf.path, &st)); in TEST()
55 ASSERT_TRUE(S_ISREG(st.st_mode)); in TEST()
56 ASSERT_FALSE(S_ISDIR(st.st_mode)); in TEST()
58 ASSERT_EQ(-1, stat((std::string(tf.path) + '/').c_str(), &st)); in TEST()
62 ASSERT_EQ(-1, stat((std::string(tf.path) + '\\').c_str(), &st)); in TEST()