[clang-tools-extra] r304067 - ClangdTests.cpp: Fix a possible typo, it was "if (TmpDir2 != TmpDir2)"
NAKAMURA Takumi via cfe-commits
cfe-commits at lists.llvm.org
Sat May 27 01:06:52 PDT 2017
Author: chapuni
Date: Sat May 27 03:06:52 2017
New Revision: 304067
URL: http://llvm.org/viewvc/llvm-project?rev=304067&view=rev
Log:
ClangdTests.cpp: Fix a possible typo, it was "if (TmpDir2 != TmpDir2)"
It caused failures in unittests if TmpDir2 is not "/tmp" .
Modified:
clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
Modified: clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp?rev=304067&r1=304066&r2=304067&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp (original)
+++ clang-tools-extra/trunk/unittests/clangd/ClangdTests.cpp Sat May 27 03:06:52 2017
@@ -120,7 +120,7 @@ IntrusiveRefCntPtr<vfs::FileSystem> getT
std::vector<std::string> TmpDirs;
TmpDirs.push_back(TmpDir1.str());
- if (TmpDir2 != TmpDir2)
+ if (TmpDir1 != TmpDir2)
TmpDirs.push_back(TmpDir2.str());
return new vfs::FilteredFileSystem(std::move(TmpDirs),
vfs::getRealFileSystem());
More information about the cfe-commits
mailing list