Add a comment to TarWriterTest.LongFilename
authorNico Weber <thakis@chromium.org>
Mon, 27 Apr 2020 17:58:53 +0000 (13:58 -0400)
committerNico Weber <thakis@chromium.org>
Mon, 27 Apr 2020 17:59:02 +0000 (13:59 -0400)
llvm/unittests/Support/TarWriterTest.cpp

index 5bbc6615ea5d23331bf0fe7a70c4312fb5d30ee5..579c06d754725142e2b9901a7f91d600824c15c0 100644 (file)
@@ -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');