From 5cfdd829b29568389d517582444d919700a775c1 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Mon, 27 Apr 2020 13:58:53 -0400 Subject: [PATCH] Add a comment to TarWriterTest.LongFilename --- llvm/unittests/Support/TarWriterTest.cpp | 2 ++ 1 file changed, 2 insertions(+) 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'); -- 2.34.1