UniqueHeaderNameTest.cpp: Appease valgrind.

llvm::sys::path::native(dst, dst) might be overridden-safe in most cases, though.

llvm-svn: 188800
This commit is contained in:
NAKAMURA Takumi 2013-08-20 14:02:38 +00:00
parent e62e279f97
commit 166b874696
1 changed files with 2 additions and 2 deletions

View File

@ -26,11 +26,11 @@ TEST(UniqueHeaderName, testUniqueHeaderName) {
llvm::SmallString<128> SourceFile(TmpDir);
append(SourceFile, "project/lib/feature.cpp");
native(SourceFile.c_str(), SourceFile);
native(SourceFile.str().str(), SourceFile);
llvm::SmallString<128> HeaderFile(TmpDir);
append(HeaderFile, "project/include/feature.h");
native(HeaderFile.c_str(), HeaderFile);
native(HeaderFile.str().str(), HeaderFile);
llvm::SmallString<128> ExpectedName("^feature.cpp_feature.h_[0-9a-f]{2}_[0-9a-f]{2}_[0-9a-f]{2}_[0-9a-f]{2}_[0-9a-f]{2}_[0-9a-f]{2}.yaml$");