From 749788eab656be2427797db225a651649cd5a089 Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Mon, 19 Mar 2018 14:20:25 +0000 Subject: [PATCH] Updated a usage of createTemporaryFile that does not expect file to be created. Summary: This fixes a usage of createTemporaryFile in clang repo after a change in llvm repo. Reviewers: klimek, bkramer, krasimir, espindola, ilya-biryukov Reviewed By: ilya-biryukov Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D36828 llvm-svn: 327852 --- clang/unittests/Tooling/ToolingTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/unittests/Tooling/ToolingTest.cpp b/clang/unittests/Tooling/ToolingTest.cpp index 6dd0e53..bd57118 100644 --- a/clang/unittests/Tooling/ToolingTest.cpp +++ b/clang/unittests/Tooling/ToolingTest.cpp @@ -319,8 +319,8 @@ TEST(runToolOnCode, TestSkipFunctionBody) { TEST(runToolOnCodeWithArgs, TestNoDepFile) { llvm::SmallString<32> DepFilePath; - ASSERT_FALSE( - llvm::sys::fs::createTemporaryFile("depfile", "d", DepFilePath)); + ASSERT_FALSE(llvm::sys::fs::getPotentiallyUniqueTempFileName("depfile", "d", + DepFilePath)); std::vector Args; Args.push_back("-MMD"); Args.push_back("-MT"); -- 2.7.4