mirror of
https://github.com/gperftools/gperftools
synced 2024-12-17 21:14:30 +00:00
Avoid sampling_test failures
Increase the upper bound of allocated memory amount to avoid test failures on Kubuntu 24.04. Fixes https://github.com/gperftools/gperftools/issues/1564.
This commit is contained in:
parent
a9a52320fc
commit
28c2853cba
@ -121,9 +121,9 @@ static void VerifyWithPProf(std::string_view argv0, std::string_view path) {
|
||||
|
||||
// We allocate 8*10^7 bytes of memory, which is 76M. Because we
|
||||
// sample, the estimate may be a bit high or a bit low: we accept
|
||||
// anything from 50M to 99M.
|
||||
if (!(50 <= megs && megs < 100)) {
|
||||
fprintf(stderr, "expected megs to be between 50 and 100. Got: %f\n", megs);
|
||||
// anything from 50M to 109M.
|
||||
if (!(50 <= megs && megs < 110)) {
|
||||
fprintf(stderr, "expected megs to be between 50 and 110. Got: %f\n", megs);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user