tests/mempool: Allocate pool in child for robust tests
authorOlivier Dion <odion@efficios.com>
Tue, 19 Mar 2024 15:39:18 +0000 (11:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 19 Mar 2024 15:40:56 +0000 (11:40 -0400)
commitd9050fc521be2a3ed212eb46f1d5683b67cc9390
tree59a02ce51345612abadaab63d0f813086b429d1c
parent7b82798a4bcbd89dd286a5ea3a2818a575661cd5
tests/mempool: Allocate pool in child for robust tests

Depending on the populate policy, it is not possible to use a pool
across a fork.  Since robust tests rely on SIGABRT to be triggered in a
child process, the pool must be allocated in the child instead of the
parent for the RSEQ_MEMPOOL_POPULATE_PRIVATE_NONE policy.

Change-Id: I78bc19d12b4f8bc0c7e2a2f05fab870ed7524e13
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/mempool_test.c
This page took 0.034551 seconds and 4 git commands to generate.