[llvm] 5cfdd82 - Add a comment to TarWriterTest.LongFilename

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 10:59:11 PDT 2020


Author: Nico Weber
Date: 2020-04-27T13:59:02-04:00
New Revision: 5cfdd829b29568389d517582444d919700a775c1

URL: https://github.com/llvm/llvm-project/commit/5cfdd829b29568389d517582444d919700a775c1
DIFF: https://github.com/llvm/llvm-project/commit/5cfdd829b29568389d517582444d919700a775c1.diff

LOG: Add a comment to TarWriterTest.LongFilename

Added: 
    

Modified: 
    llvm/unittests/Support/TarWriterTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/Support/TarWriterTest.cpp b/llvm/unittests/Support/TarWriterTest.cpp
index 5bbc6615ea5d..579c06d75472 100644
--- a/llvm/unittests/Support/TarWriterTest.cpp
+++ b/llvm/unittests/Support/TarWriterTest.cpp
@@ -81,6 +81,8 @@ TEST_F(TarWriterTest, Basics) {
 }
 
 TEST_F(TarWriterTest, LongFilename) {
+  // The prefix is prefixed by an additional '/' so it's one longer than the
+  // number of x's here.
   std::string x136(136, 'x');
   std::string x137(137, 'x');
   std::string y99(99, 'y');


        


More information about the llvm-commits mailing list