Lines Matching +full:make +full:- +full:dir
2 * Use of this source code is governed by a BSD-style license that can be
71 // just make sure it doesn't crash?
81 // Make sure we can write a pid to the file.
108 TemporaryDir dir; in TEST() local
109 ASSERT_TRUE(dir.is_valid()); in TEST()
111 // Run `mkdir -p <path>/a/b/c`. in TEST()
112 std::string path_a = dir.path + "/a"; in TEST()
119 // Make sure the final path doesn't exist yet. in TEST()
123 EXPECT_EQ(-1, stat(path_a_b_c.c_str(), &st)); in TEST()
125 // Then create it as a complete dir. in TEST()
128 // Make sure the final dir actually exists. in TEST()
143 TemporaryDir dir; in TEST() local
144 ASSERT_TRUE(dir.is_valid()); in TEST()
146 unsigned long mount_flags = -1; in TEST()
151 mount_flags = -1; in TEST()
156 // Non-existent paths fail with the proper errno value.
158 unsigned long mount_flags = -1; in TEST()
159 ASSERT_EQ(-ENOENT, get_mount_flags("/does/not/exist", &mount_flags)); in TEST()
177 // A mount of a pseudo filesystem should make the destination dir.
179 TemporaryDir dir; in TEST() local
180 ASSERT_TRUE(dir.is_valid()); in TEST()
182 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
183 std::string no_chmod = dir.path + "/no_chmod"; in TEST()
184 EXPECT_EQ(0, setup_mount_destination("none", no_chmod.c_str(), -1, -1, in TEST()
194 std::string with_chmod = dir.path + "/with_chmod"; in TEST()
207 // A bind mount of a directory should create the destination dir.
209 TemporaryDir dir; in TEST() local
210 ASSERT_TRUE(dir.is_valid()); in TEST()
212 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
213 std::string child_dir = dir.path + "/child_dir"; in TEST()
214 EXPECT_EQ(0, setup_mount_destination(kValidDir, child_dir.c_str(), -1, -1, in TEST()
222 TemporaryDir dir; in TEST() local
223 ASSERT_TRUE(dir.is_valid()); in TEST()
225 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
226 std::string child_file = dir.path + "/child_file"; in TEST()
227 EXPECT_EQ(0, setup_mount_destination(kValidFile, child_file.c_str(), -1, -1, in TEST()
235 TemporaryDir dir; in TEST() local
236 ASSERT_TRUE(dir.is_valid()); in TEST()
238 // Passing -1 for user ID/group ID tells chown to make no changes. in TEST()
239 std::string child_dev = dir.path + "/child_dev"; in TEST()
240 EXPECT_EQ(0, setup_mount_destination(kValidCharDev, child_dev.c_str(), -1, -1, in TEST()