/external/llvm-project/llvm/unittests/Support/ |
D | FileOutputBufferTest.cpp | 21 #define ASSERT_NO_ERROR(x) \ macro 37 ASSERT_NO_ERROR( in TEST() 47 ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError())); in TEST() 54 ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit())); in TEST() 59 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST() 61 ASSERT_NO_ERROR(fs::remove(File1.str())); in TEST() 69 ASSERT_NO_ERROR(errorToErrorCode(Buffer2OrErr.takeError())); in TEST() 78 ASSERT_NO_ERROR(fs::remove(File2.str())); in TEST() 86 ASSERT_NO_ERROR(errorToErrorCode(BufferOrErr.takeError())); in TEST() 92 ASSERT_NO_ERROR(errorToErrorCode(Buffer->commit())); in TEST() [all …]
|
D | Path.cpp | 45 #define ASSERT_NO_ERROR(x) \ macro 204 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST() 621 ASSERT_NO_ERROR( in SetUp() 633 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown() 640 ASSERT_NO_ERROR( in TEST_F() 645 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 646 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 652 ASSERT_NO_ERROR( in TEST_F() 656 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F() 660 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F() [all …]
|
D | ReplaceFileTest.cpp | 20 #define ASSERT_NO_ERROR(x) \ macro 73 ASSERT_NO_ERROR(fs::createUniqueDirectory( in TEST() 83 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST() 84 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST() 89 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST() 114 ASSERT_NO_ERROR(fs::remove(SourceFileName)); in TEST() 115 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST() 122 ASSERT_NO_ERROR( in TEST() 137 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST() 138 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST() [all …]
|
D | ProgramTest.cpp | 39 #define ASSERT_NO_ERROR(x) \ macro 133 ASSERT_NO_ERROR( in TEST_F() 150 ASSERT_NO_ERROR(fs::remove(Twine(LongPath))); in TEST_F() 151 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F() 310 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST() 316 ASSERT_NO_ERROR(sys::writeFileWithEncoding(file_pathname.c_str(), utf8_text, in TEST() 319 ASSERT_NO_ERROR(fs::openFileForRead(file_pathname.c_str(), fd)); in TEST() 336 ASSERT_NO_ERROR(fs::remove(file_pathname.str())); in TEST() 337 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST() 371 ASSERT_NO_ERROR(fs::openFileForReadWrite(LockedFile, FD2, in TEST_F() [all …]
|
D | raw_pwrite_stream_test.cpp | 18 #define ASSERT_NO_ERROR(x) \ macro 62 ASSERT_NO_ERROR(sys::fs::openFileForRead(Path, FD)); in TEST() 64 ASSERT_NO_ERROR(sys::fs::createTemporaryFile("foo", "bar", FD, Path)); in TEST()
|
D | MemoryBufferTest.cpp | 33 #define ASSERT_NO_ERROR(x) \ macro 114 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F() 116 ASSERT_NO_ERROR(MB.getError()); in TEST_F() 124 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F() 192 ASSERT_NO_ERROR(MB.getError()); in TEST_F() 387 ASSERT_NO_ERROR(sys::fs::createTemporaryFile( in TEST_F() 401 make_scope_exit([&] { ASSERT_NO_ERROR(sys::fs::closeFile(*File)); }); in TEST_F() 405 ASSERT_NO_ERROR(MBOrError.getError()) in TEST_F()
|
D | Host.cpp | 20 #define ASSERT_NO_ERROR(x) \ macro 295 ASSERT_NO_ERROR(fs::createUniqueDirectory("host_test", TestDirectory)); in runAndGetCommandOutput() 307 ASSERT_NO_ERROR(fs::openFileForRead(OutputPath, FD)); in runAndGetCommandOutput() 315 ASSERT_NO_ERROR(fs::remove(OutputPath)); in runAndGetCommandOutput() 316 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in runAndGetCommandOutput()
|
D | FileUtilitiesTest.cpp | 24 #define ASSERT_NO_ERROR(x) \ macro
|
/external/llvm/unittests/Support/ |
D | FileOutputBufferTest.cpp | 21 #define ASSERT_NO_ERROR(x) \ macro 34 ASSERT_NO_ERROR( in TEST() 44 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST() 51 ASSERT_NO_ERROR(Buffer->commit()); in TEST() 56 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST() 58 ASSERT_NO_ERROR(fs::remove(File1.str())); in TEST() 66 ASSERT_NO_ERROR(Buffer2OrErr.getError()); in TEST() 75 ASSERT_NO_ERROR(fs::remove(File2.str())); in TEST() 83 ASSERT_NO_ERROR(BufferOrErr.getError()); in TEST() 89 ASSERT_NO_ERROR(Buffer->commit()); in TEST() [all …]
|
D | Path.cpp | 32 #define ASSERT_NO_ERROR(x) \ macro 142 ASSERT_NO_ERROR(fs::make_absolute(temp_store)); in TEST() 157 ASSERT_NO_ERROR(sys::fs::make_absolute("/root", Relative)); in TEST() 432 ASSERT_NO_ERROR( in SetUp() 439 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown() 446 ASSERT_NO_ERROR( in TEST_F() 451 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 452 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 458 ASSERT_NO_ERROR( in TEST_F() 462 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F() [all …]
|
D | ReplaceFileTest.cpp | 21 #define ASSERT_NO_ERROR(x) \ macro 58 ASSERT_NO_ERROR(fs::createUniqueDirectory( in TEST() 68 ASSERT_NO_ERROR(CreateFileWithContent(SourceFileName, "!!source!!")); in TEST() 69 ASSERT_NO_ERROR(CreateFileWithContent(TargetFileName, "!!target!!")); in TEST() 74 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST() 94 ASSERT_NO_ERROR(fs::openFileForRead(TargetFileName, ReadFD)); in TEST() 109 ASSERT_NO_ERROR(fs::remove(SourceFileName)); in TEST() 110 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
|
D | ProgramTest.cpp | 38 #define ASSERT_NO_ERROR(x) \ macro 141 ASSERT_NO_ERROR( in TEST_F() 159 ASSERT_NO_ERROR(fs::remove(Twine(LongPath))); in TEST_F() 160 ASSERT_NO_ERROR(fs::remove(Twine(TestDirectory))); in TEST_F() 325 ASSERT_NO_ERROR(fs::createUniqueDirectory("program-test", TestDirectory)); in TEST() 331 ASSERT_NO_ERROR(sys::writeFileWithEncoding(file_pathname.c_str(), utf8_text, in TEST() 334 ASSERT_NO_ERROR(fs::openFileForRead(file_pathname.c_str(), fd)); in TEST() 351 ASSERT_NO_ERROR(fs::remove(file_pathname.str())); in TEST() 352 ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); in TEST()
|
/external/llvm-project/llvm/unittests/BinaryFormat/ |
D | TestFileMagic.cpp | 20 #define ASSERT_NO_ERROR(x) \ macro 38 ASSERT_NO_ERROR( in SetUp() 45 void TearDown() override { ASSERT_NO_ERROR(fs::remove(TestDirectory.str())); } in TearDown() 137 ASSERT_NO_ERROR(fs::remove(Twine(file_pathname))); in TEST_F()
|
/external/llvm-project/lldb/unittests/Interpreter/ |
D | TestCompletion.cpp | 64 ASSERT_NO_ERROR(fs::set_current_path(OriginalWorkingDir)); in SetUp() 71 ASSERT_NO_ERROR(fs::createUniqueDirectory("FsCompletion-" + name, BaseDir)); in SetUp() 83 ASSERT_NO_ERROR(fs::create_directories(Path)); in SetUp() 93 ASSERT_NO_ERROR(fs::createUniqueFile(Path, FD, Path)); in SetUp() 99 ASSERT_NO_ERROR(fs::current_path(OriginalWorkingDir)); in SetUpTestCase() 103 ASSERT_NO_ERROR(fs::remove_directories(BaseDir)); in TearDown()
|
/external/llvm-project/lldb/unittests/TestingSupport/ |
D | TestUtilities.h | 20 #define ASSERT_NO_ERROR(x) \ macro
|