Home
last modified time | relevance | path

Searched refs:TestDirectory (Results 1 – 14 of 14) sorted by relevance

/external/llvm-project/llvm/unittests/Support/
DReplaceFileTest.cpp72 SmallString<128> TestDirectory; in TEST() local
74 "FileOpenedForReadingCanBeReplaced-test", TestDirectory)); in TEST()
77 SmallString<128> SourceFileName(TestDirectory); in TEST()
80 SmallString<128> TargetFileName(TestDirectory); in TEST()
115 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
121 SmallString<128> TestDirectory; in TEST() local
123 fs::createUniqueDirectory("ExistingTemp-test", TestDirectory)); in TEST()
125 SmallString<128> SourceFileName(TestDirectory); in TEST()
128 SmallString<128> TargetFileName(TestDirectory); in TEST()
131 SmallString<128> TargetTmp0FileName(TestDirectory); in TEST()
[all …]
DFileOutputBufferTest.cpp35 SmallString<128> TestDirectory; in TEST() local
38 fs::createUniqueDirectory("FileOutputBuffer-test", TestDirectory)); in TEST()
42 SmallString<128> File1(TestDirectory); in TEST()
64 SmallString<128> File2(TestDirectory); in TEST()
81 SmallString<128> File3(TestDirectory); in TEST()
102 SmallString<128> File4(TestDirectory); in TEST()
122 SmallString<128> File5(TestDirectory); in TEST()
145 SmallString<128> File6(TestDirectory); in TEST()
159 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DPath.cpp617 SmallString<128> TestDirectory; member in __anon5521ec1c0111::FileSystemTest
622 fs::createUniqueDirectory("file-system-test", TestDirectory)); in SetUp()
624 errs() << "Test Directory: " << TestDirectory << '\n'; in SetUp()
626 NonExistantFile = TestDirectory; in SetUp()
633 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
691 fs::create_directories(Twine(TestDirectory) + "/test1/test2/test3")); in TEST_F()
692 ASSERT_TRUE(fs::exists(Twine(TestDirectory) + "/test1/test2/test3")); in TEST_F()
703 ASSERT_NO_ERROR(fs::real_path(TestDirectory, RealBase)); in TEST_F()
707 Twine(TestDirectory) + "/././test1/../test1/test2/./test3/..", Actual)); in TEST_F()
723 ASSERT_NO_ERROR(fs::remove_directories(Twine(TestDirectory) + "/test1")); in TEST_F()
[all …]
DVirtualFileSystemTest.cpp418 TempDir TestDirectory("virtual-file-system-test", /*Unique*/ true); in TEST() local
422 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory.path()), EC); in TEST()
426 TempDir _a(TestDirectory.path("a")); in TEST()
427 TempDir _ab(TestDirectory.path("a/b")); in TEST()
428 TempDir _c(TestDirectory.path("c")); in TEST()
429 TempDir _cd(TestDirectory.path("c/d")); in TEST()
431 I = FS->dir_begin(Twine(TestDirectory.path()), EC); in TEST()
511 TempDir TestDirectory("virtual-file-system-test", /*Unique*/ true); in TEST() local
514 TempLink _a("no_such_file", TestDirectory.path("a")); in TEST()
515 TempDir _b(TestDirectory.path("b")); in TEST()
[all …]
DProgramTest.cpp132 SmallString<128> TestDirectory; in TEST_F() local
134 fs::createUniqueDirectory("program-redirect-test", TestDirectory)); in TEST_F()
135 SmallString<256> LongPath(TestDirectory); in TEST_F()
138 LongPath.append(260 - TestDirectory.size(), 'a'); in TEST_F()
151 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F()
309 SmallString<128> TestDirectory; in TEST() local
310 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST()
311 errs() << "Test Directory: " << TestDirectory << '\n'; in TEST()
313 SmallString<128> file_pathname(TestDirectory); in TEST()
337 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DHost.cpp294 SmallString<128> TestDirectory; in runAndGetCommandOutput() local
295 ASSERT_NO_ERROR(fs::createUniqueDirectory("host_test", TestDirectory)); in runAndGetCommandOutput()
297 SmallString<128> OutputFile(TestDirectory); in runAndGetCommandOutput()
316 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in runAndGetCommandOutput()
/external/llvm/unittests/Support/
DFileOutputBufferTest.cpp32 SmallString<128> TestDirectory; in TEST() local
35 fs::createUniqueDirectory("FileOutputBuffer-test", TestDirectory)); in TEST()
39 SmallString<128> File1(TestDirectory); in TEST()
61 SmallString<128> File2(TestDirectory); in TEST()
78 SmallString<128> File3(TestDirectory); in TEST()
99 SmallString<128> File4(TestDirectory); in TEST()
119 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DPath.cpp429 SmallString<128> TestDirectory; member in __anonf235152e0111::FileSystemTest
433 fs::createUniqueDirectory("file-system-test", TestDirectory)); in SetUp()
435 errs() << "Test Directory: " << TestDirectory << '\n'; in SetUp()
439 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
575 ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory) + "foo")); in TEST_F()
576 ASSERT_NO_ERROR(fs::create_directory(Twine(TestDirectory) + "foo")); in TEST_F()
577 ASSERT_EQ(fs::create_directory(Twine(TestDirectory) + "foo", false), in TEST_F()
579 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory) + "foo")); in TEST_F()
587 fs::create_directory(Twine(TestDirectory) + "baz500", false, in TEST_F()
589 ASSERT_NO_ERROR(fs::status(Twine(TestDirectory) + "baz500", Status)); in TEST_F()
[all …]
DProgramTest.cpp140 SmallString<128> TestDirectory; in TEST_F() local
142 fs::createUniqueDirectory("program-redirect-test", TestDirectory)); in TEST_F()
143 SmallString<256> LongPath(TestDirectory); in TEST_F()
146 LongPath.append(260 - TestDirectory.size(), 'a'); in TEST_F()
160 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F()
324 SmallString<128> TestDirectory; in TEST() local
325 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST()
326 errs() << "Test Directory: " << TestDirectory << '\n'; in TEST()
328 SmallString<128> file_pathname(TestDirectory); in TEST()
352 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
DReplaceFileTest.cpp57 SmallString<128> TestDirectory; in TEST() local
59 "FileOpenedForReadingCanBeReplaced-test", TestDirectory)); in TEST()
62 SmallString<128> SourceFileName(TestDirectory); in TEST()
65 SmallString<128> TargetFileName(TestDirectory); in TEST()
110 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
/external/llvm-project/llvm/unittests/BinaryFormat/
DTestFileMagic.cpp35 SmallString<128> TestDirectory; member in MagicTest
39 fs::createUniqueDirectory("file-system-test", TestDirectory)); in SetUp()
41 errs() << "Test Directory: " << TestDirectory << '\n'; in SetUp()
45 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown()
128 SmallString<128> file_pathname(TestDirectory); in TEST_F()
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/X86/
DSnippetFileTest.cpp43 TempDir TestDirectory("SnippetFileTestDir", /*Unique*/ true); in TestCommon() local
44 SmallString<64> Filename(TestDirectory.path()); in TestCommon()
/external/clang/unittests/Basic/
DVirtualFileSystemTest.cpp309 ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); in TEST() local
313 vfs::directory_iterator I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
317 ScopedDir _a(TestDirectory+"/a"); in TEST()
318 ScopedDir _ab(TestDirectory+"/a/b"); in TEST()
319 ScopedDir _c(TestDirectory+"/c"); in TEST()
320 ScopedDir _cd(TestDirectory+"/c/d"); in TEST()
322 I = FS->dir_begin(Twine(TestDirectory), EC); in TEST()
336 ScopedDir TestDirectory("virtual-file-system-test", /*Unique*/true); in TEST() local
340 auto I = vfs::recursive_directory_iterator(*FS, Twine(TestDirectory), EC); in TEST()
344 ScopedDir _a(TestDirectory+"/a"); in TEST()
[all …]
/external/llvm-project/llvm/unittests/tools/llvm-exegesis/Mips/
DBenchmarkResultTest.cpp82 TempDir TestDirectory("BenchmarkResultTestDir", /*Unique*/ true); in TEST_F() local
83 SmallString<64> Filename(TestDirectory.path()); in TEST_F()