[scudo] Skip AllocAfterFork test on machines with low max_map_count
authorKostya Kortchinsky <kostyak@google.com>
Fri, 8 Oct 2021 21:12:34 +0000 (14:12 -0700)
committerKostya Kortchinsky <kostyak@google.com>
Mon, 11 Oct 2021 17:33:47 +0000 (10:33 -0700)
commit56a9effc427b10203dfb7f691a12924a82ba5cd5
treebea1bf7d78de47a27c51309fd5916498916cb934
parentb4b7e605a6b2e2a9f8c5ce6df042b32f320d239a
[scudo] Skip AllocAfterFork test on machines with low max_map_count

Reducing the number of iterations in that test with D111342 helped,
but the failure still occured flakily when the test is ran as part
of a large test suite.

Reducing further the number of iterations might not be good enough,
so we will skip the test if the `max_map_count` variable can be
read, and if lower than a given threshold.

Differential Revision: https://reviews.llvm.org/D111465
compiler-rt/lib/scudo/standalone/tests/wrappers_cpp_test.cpp