Home | History | Annotate | Download | only in Support

Lines Matching refs:fs

128     ASSERT_NO_ERROR(fs::make_absolute(temp_store));
152 fs::unique_file("file-system-test-%%-%%-%%-%%/test-directory.anchor", fd,
163 ASSERT_NO_ERROR(fs::remove_all(TestDirectory.str(), removed));
172 fs::unique_file("%%-%%-%%-%%.temp", FileDescriptor, TempPath));
176 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists));
182 ASSERT_NO_ERROR(fs::unique_file("%%-%%-%%-%%.temp", FD2, TempPath2));
185 fs::file_status A, B;
186 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A));
187 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B));
188 EXPECT_FALSE(fs::equivalent(A, B));
192 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists);
196 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2),
197 fs::copy_option::overwrite_if_exists));
199 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists));
203 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists));
207 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2)));
209 ASSERT_NO_ERROR(fs::equivalent(Twine(TempPath), Twine(TempPath2), equal));
211 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A));
212 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B));
213 EXPECT_TRUE(fs::equivalent(A, B));
217 ASSERT_NO_ERROR(fs::remove(Twine(TempPath), TempFileExists));
221 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists));
225 ASSERT_NO_ERROR(fs::exists(Twine(TempPath), TempFileExists));
236 EXPECT_EQ(fs::unique_file(Twine(Path270), FileDescriptor, TempPath),
243 for (fs::directory_iterator i(".", ec), e; i != e; i.increment(ec))
248 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory)
250 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory)
252 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory)
254 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory)
256 ASSERT_NO_ERROR(fs::create_directories(Twine(TestDirectory)
260 for (fs::recursive_directory_iterator i(Twine(TestDirectory)
321 ASSERT_NO_ERROR(fs::has_magic(file_pathname.c_str(), magic, res));
332 fs::unique_file("%%-%%-%%-%%.temp", FileDescriptor, TempPath));
335 const fs::perms AllWrite = fs::owner_write|fs::group_write|fs::others_write;
336 ASSERT_NO_ERROR(fs::permissions(Twine(TempPath), fs::remove_perms|AllWrite));
339 fs::file_status Status;
340 ASSERT_NO_ERROR(fs::status(Twine(TempPath), Status));
345 ASSERT_NO_ERROR(fs::permissions(Twine(TempPath), fs::add_perms|AllWrite));
348 ASSERT_NO_ERROR(fs::status(Twine(TempPath), Status));
359 fs::unique_file("%%-%%-%%-%%.temp", FileDescriptor, TempPath));
364 fs::mapped_file_region mfr(FileDescriptor,
366 fs::mapped_file_region::readwrite,
378 fs::mapped_file_region mfr(Twine(TempPath),
379 fs::mapped_file_region::readonly,
391 fs::mapped_file_region m(Twine(TempPath),
392 fs::mapped_file_region::readonly,
398 fs::mapped_file_region mfrrv(llvm_move(m));