diff options
author | Rui Ueyama <ruiu@google.com> | 2017-01-09 22:55:00 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-01-09 22:55:00 +0000 |
commit | e9d17545bc5922f5eda60a65c3fba88ec36fc1f5 (patch) | |
tree | 12f9eac28af4cb0634a7a1b0d391bb68295cbab1 /llvm/unittests/Support/CMakeLists.txt | |
parent | be92d5e930625470980b4213369658c628f2f310 (diff) | |
download | bcm5719-llvm-e9d17545bc5922f5eda60a65c3fba88ec36fc1f5.tar.gz bcm5719-llvm-e9d17545bc5922f5eda60a65c3fba88ec36fc1f5.zip |
TarWriter: Fix a bug in Ustar header.
If we split a filename into `Name` and `Prefix`, `Prefix` is at most
145 bytes. We had a bug that didn't split a path correctly. This bug
was pointed out by Rafael in the post commit review.
This patch adds a unit test for TarWriter to verify the fix.
llvm-svn: 291494
Diffstat (limited to 'llvm/unittests/Support/CMakeLists.txt')
-rw-r--r-- | llvm/unittests/Support/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CMakeLists.txt b/llvm/unittests/Support/CMakeLists.txt index 2ffedab82ac..6068de5514c 100644 --- a/llvm/unittests/Support/CMakeLists.txt +++ b/llvm/unittests/Support/CMakeLists.txt @@ -43,10 +43,11 @@ add_llvm_unittest(SupportTests SpecialCaseListTest.cpp StringPool.cpp SwapByteOrderTest.cpp + TarWriterTest.cpp TargetParserTest.cpp - Threading.cpp ThreadLocalTest.cpp ThreadPool.cpp + Threading.cpp TimerTest.cpp TypeNameTest.cpp TrailingObjectsTest.cpp |