[llvm] 406e2fb - The test added in d8690bc requires ZLIB, so only run the test if LLVM_ENABLE_ZLIB is set.

Douglas Yung via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 15 20:21:17 PDT 2023


Author: Douglas Yung
Date: 2023-03-15T20:21:08-07:00
New Revision: 406e2fbf6ac1e408deb31f480d940aaf15b8bce5

URL: https://github.com/llvm/llvm-project/commit/406e2fbf6ac1e408deb31f480d940aaf15b8bce5
DIFF: https://github.com/llvm/llvm-project/commit/406e2fbf6ac1e408deb31f480d940aaf15b8bce5.diff

LOG: The test added in d8690bc requires ZLIB, so only run the test if LLVM_ENABLE_ZLIB is set.

This will fix buildbots that fail because they do not have ZLIB installed such as
https://lab.llvm.org/buildbot/#/builders/216/builds/18424

Added: 
    

Modified: 
    llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp b/llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp
index 51ceb5b520fa..25da748865ec 100644
--- a/llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp
+++ b/llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp
@@ -184,6 +184,7 @@ TEST(TestOutputSizeLimit, TestOutputSizeLimitText) {
         Succeeded());
 }
 
+#if LLVM_ENABLE_ZLIB
 TEST(TestOutputSizeLimit, TestOutputSizeLimitExtBinaryCompressed) {
   for (size_t OutputSizeLimit :
        {507, 506, 505, 494, 493, 492, 483, 482, 481, 480})
@@ -191,3 +192,4 @@ TEST(TestOutputSizeLimit, TestOutputSizeLimitExtBinaryCompressed) {
                                  llvm::sampleprof::SPF_Ext_Binary, true),
                          Succeeded());
 }
+#endif


        


More information about the llvm-commits mailing list