diff options
| author | Zachary Turner <zturner@google.com> | 2018-09-05 23:45:48 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2018-09-05 23:45:48 +0000 |
| commit | 9ec23049a76cef425e3978e617cd3aaf2f8d2fd3 (patch) | |
| tree | 1d9a2dafb2593a4b68a2638209bfe9698c3fe5d5 | |
| parent | da33900b9533571acc06f688806f9ad1988e668a (diff) | |
| download | bcm5719-llvm-9ec23049a76cef425e3978e617cd3aaf2f8d2fd3.tar.gz bcm5719-llvm-9ec23049a76cef425e3978e617cd3aaf2f8d2fd3.zip | |
Fix silly error in unittest helper.
llvm-svn: 341505
| -rw-r--r-- | llvm/lib/Testing/Support/SupportHelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Testing/Support/SupportHelpers.cpp b/llvm/lib/Testing/Support/SupportHelpers.cpp index c26697988ce..ce64d6e8801 100644 --- a/llvm/lib/Testing/Support/SupportHelpers.cpp +++ b/llvm/lib/Testing/Support/SupportHelpers.cpp @@ -20,7 +20,7 @@ SmallString<128> llvm::unittest::getInputFileDirectory() { llvm::sys::fs::make_absolute(Result); llvm::sys::path::append(Result, "llvm.srcdir.txt"); - EXPECT_TRUE(llvm::sys::fs::is_directory(Result)) + EXPECT_TRUE(llvm::sys::fs::is_regular_file(Result)) << "Unit test source directory file does not exist."; auto File = MemoryBuffer::getFile(Result); |

