[llvm] 1c1eaf7 - [llvm-profdata] Make tests more readable (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 27 13:28:42 PST 2023


Author: Kazu Hirata
Date: 2023-12-27T13:28:37-08:00
New Revision: 1c1eaf75f5f2efd72ba813b29b3d7b556d61b70b

URL: https://github.com/llvm/llvm-project/commit/1c1eaf75f5f2efd72ba813b29b3d7b556d61b70b
DIFF: https://github.com/llvm/llvm-project/commit/1c1eaf75f5f2efd72ba813b29b3d7b556d61b70b.diff

LOG: [llvm-profdata] Make tests more readable (NFC)

This patch splits a couple of lines of printf into four for
readability so that each corresponds to one field or padding.  They
correspond to NumCounters, NumValueSites, NumBitmapBytes, and padding,
respectively.

Added: 
    

Modified: 
    llvm/test/tools/llvm-profdata/raw-64-bits-le.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/tools/llvm-profdata/raw-64-bits-le.test b/llvm/test/tools/llvm-profdata/raw-64-bits-le.test
index 0aa8b38f692672..0b3ef2a89abe52 100644
--- a/llvm/test/tools/llvm-profdata/raw-64-bits-le.test
+++ b/llvm/test/tools/llvm-profdata/raw-64-bits-le.test
@@ -19,8 +19,10 @@ RUN: printf '\0\0\4\0\1\0\0\0' >> %t
 RUN: printf '\0\0\4\0\3\0\0\0' >> %t
 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
-RUN: printf '\1\0\0\0\0\0\0\0' >> %t
-RUN: printf '\3\0\0\0\0\0\0\0' >> %t
+RUN: printf '\1\0\0\0' >> %t
+RUN: printf '\0\0\0\0' >> %t
+RUN: printf '\3\0\0\0' >> %t
+RUN: printf '\0\0\0\0' >> %t
 
 RUN: printf '\067\265\035\031\112\165\023\344' >> %t
 RUN: printf '\02\0\0\0\0\0\0\0' >> %t
@@ -28,8 +30,10 @@ RUN: printf '\xc8\xff\3\0\1\0\0\0' >> %t
 RUN: printf '\xc3\xff\3\0\3\0\0\0' >> %t
 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
 RUN: printf '\0\0\0\0\0\0\0\0' >> %t
-RUN: printf '\02\0\0\0\0\0\0\0' >> %t
-RUN: printf '\1\0\0\0\0\0\0\0' >> %t
+RUN: printf '\02\0\0\0' >> %t
+RUN: printf '\0\0\0\0' >> %t
+RUN: printf '\1\0\0\0' >> %t
+RUN: printf '\0\0\0\0' >> %t
 
 RUN: printf '\023\0\0\0\0\0\0\0' >> %t
 RUN: printf '\067\0\0\0\0\0\0\0' >> %t


        


More information about the llvm-commits mailing list