[llvm] 224d815 - [llvm] [unittests] Fix failing test 'FileCollectorTest.addDirectory'
Sergej Jaskiewicz via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 1 14:54:47 PDT 2020
Author: Sergej Jaskiewicz
Date: 2020-09-02T00:54:37+03:00
New Revision: 224d8153b53b16cf535ea1a55afdfe1ec5b1374f
URL: https://github.com/llvm/llvm-project/commit/224d8153b53b16cf535ea1a55afdfe1ec5b1374f
DIFF: https://github.com/llvm/llvm-project/commit/224d8153b53b16cf535ea1a55afdfe1ec5b1374f.diff
LOG: [llvm] [unittests] Fix failing test 'FileCollectorTest.addDirectory'
This fixes a regression in the test suite introduced by
fad75598d272b9a5591fb7d9b591cf00cdf5022c
Added:
Modified:
llvm/unittests/Support/FileCollectorTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/Support/FileCollectorTest.cpp b/llvm/unittests/Support/FileCollectorTest.cpp
index 20d7068d2071..644daa374f87 100644
--- a/llvm/unittests/Support/FileCollectorTest.cpp
+++ b/llvm/unittests/Support/FileCollectorTest.cpp
@@ -95,7 +95,7 @@ TEST(FileCollectorTest, addDirectory) {
// Make sure we've only seen the added files.
llvm::SmallString<128> ddd(file_root.path());
llvm::sys::path::append(ddd, "ddd");
- TempFile d(ddd.str(), "", "", /*Unique*/ true);
+ TempFile d(ddd);
EXPECT_FALSE(FileCollector.hasSeen(d.path()));
}
More information about the llvm-commits
mailing list