[PATCH] D130563: Skip padding between buildid and filenames.

Sriraman Tallam via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 30 12:44:48 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG90f2c768e59a: Unittest to skip padding between buildid and filenames. (authored by tmsriram).

Changed prior to commit:
  https://reviews.llvm.org/D130563?vs=447797&id=464371#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130563/new/

https://reviews.llvm.org/D130563

Files:
  bolt/unittests/Profile/DataAggregator.cpp


Index: bolt/unittests/Profile/DataAggregator.cpp
===================================================================
--- bolt/unittests/Profile/DataAggregator.cpp
+++ bolt/unittests/Profile/DataAggregator.cpp
@@ -41,11 +41,14 @@
 
   StringRef AllValidBuildIDs = "0000 File0\n"
                                "1111 File1\n"
-                               "2222 File2\n";
+                               "2222 File2\n"
+                               "333  File3\n";
   DA.setParsingBuffer(AllValidBuildIDs);
   ASSERT_TRUE(DA.hasAllBuildIDs());
   FileName = DA.getFileNameForBuildID("1234");
   ASSERT_FALSE(FileName);
   FileName = DA.getFileNameForBuildID("2222");
   ASSERT_EQ(*FileName, "File2");
+  FileName = DA.getFileNameForBuildID("333");
+  ASSERT_EQ(*FileName, "File3");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130563.464371.patch
Type: text/x-patch
Size: 788 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220930/5ec034a3/attachment.bin>


More information about the llvm-commits mailing list