diff options
author | Reid Kleckner <rnk@google.com> | 2016-09-02 00:51:34 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-09-02 00:51:34 +0000 |
commit | 75e557f1fd9392a20989e57d31eaa1878f7ca9c1 (patch) | |
tree | a461719db45df760167f6def422e480352ad58c3 /llvm/unittests/Support/SpecialCaseListTest.cpp | |
parent | 1200a050ff59e16631972e25e93f24d34b982115 (diff) | |
download | bcm5719-llvm-75e557f1fd9392a20989e57d31eaa1878f7ca9c1.tar.gz bcm5719-llvm-75e557f1fd9392a20989e57d31eaa1878f7ca9c1.zip |
Try to fix some temp file leaks in SupportTests, PR18335
llvm-svn: 280443
Diffstat (limited to 'llvm/unittests/Support/SpecialCaseListTest.cpp')
-rw-r--r-- | llvm/unittests/Support/SpecialCaseListTest.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/unittests/Support/SpecialCaseListTest.cpp b/llvm/unittests/Support/SpecialCaseListTest.cpp index 0657f8003e8..28c21dab8e3 100644 --- a/llvm/unittests/Support/SpecialCaseListTest.cpp +++ b/llvm/unittests/Support/SpecialCaseListTest.cpp @@ -130,6 +130,8 @@ TEST_F(SpecialCaseListTest, MultipleBlacklists) { EXPECT_TRUE(SCL->inSection("src", "ban", "init")); EXPECT_TRUE(SCL->inSection("src", "tomfoolery")); EXPECT_TRUE(SCL->inSection("src", "tomfoglery")); + for (auto &Path : Files) + sys::fs::remove(Path); } } |