Skip to content

Commit

Permalink
The test added in d8690bc requires ZLIB, so only run the test if LLVM…
Browse files Browse the repository at this point in the history
…_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
  • Loading branch information
dyung committed Mar 16, 2023
1 parent 38d7f85 commit 406e2fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/unittests/tools/llvm-profdata/OutputSizeLimitTest.cpp
Expand Up @@ -184,10 +184,12 @@ 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})
ASSERT_THAT_EXPECTED(RunTest(Input1, OutputSizeLimit,
llvm::sampleprof::SPF_Ext_Binary, true),
Succeeded());
}
#endif

0 comments on commit 406e2fb

Please sign in to comment.