[llvm] r341505 - Fix silly error in unittest helper.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 5 16:45:48 PDT 2018
Author: zturner
Date: Wed Sep 5 16:45:48 2018
New Revision: 341505
URL: http://llvm.org/viewvc/llvm-project?rev=341505&view=rev
Log:
Fix silly error in unittest helper.
Modified:
llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
Modified: llvm/trunk/lib/Testing/Support/SupportHelpers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Testing/Support/SupportHelpers.cpp?rev=341505&r1=341504&r2=341505&view=diff
==============================================================================
--- llvm/trunk/lib/Testing/Support/SupportHelpers.cpp (original)
+++ llvm/trunk/lib/Testing/Support/SupportHelpers.cpp Wed Sep 5 16:45:48 2018
@@ -20,7 +20,7 @@ SmallString<128> llvm::unittest::getInpu
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);
More information about the llvm-commits
mailing list