[tests] MINSIGSTKSZ is no longer a constant, update tests

glibc 2.34 makes MINSIGSTKSZ a runtime value, as noted in the changelog:
https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=85e84fe53699fe9e392edffa993612ce08b2954a;hb=HEAD.

This prevents tests from building on these systems, remove constexpr to
fix it.

Change-Id: I83b19aa7c075f0d9b02875aef8985fac6fce18a5
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4020320
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Benoit Lize <lizeb@chromium.org>
This commit is contained in:
Benoît Lizé 2022-11-10 19:01:53 +01:00 committed by Crashpad LUCI CQ
parent 58c68181ea
commit 9ca1fb932e

View File

@ -268,7 +268,7 @@ class ScopedAltSignalStack {
void Initialize() { void Initialize() {
ScopedMmap local_stack_mem; ScopedMmap local_stack_mem;
constexpr size_t stack_size = MINSIGSTKSZ; const size_t stack_size = MINSIGSTKSZ;
ASSERT_TRUE(local_stack_mem.ResetMmap(nullptr, ASSERT_TRUE(local_stack_mem.ResetMmap(nullptr,
stack_size, stack_size,
PROT_READ | PROT_WRITE, PROT_READ | PROT_WRITE,