Skip to content
Snippets Groups Projects
Commit c7d02b4b authored by Laszlo Ersek's avatar Laszlo Ersek
Browse files

lib/utils: add unit test for async-signal-safe assert()


Don't try to test async-signal-safety, only that
NBD_INTERNAL_FORK_SAFE_ASSERT() works similarly to assert():

- it prints diagnostics to stderr,

- it calls abort().

Some unfortunate gymnastics are necessary to avoid littering the system
with unwanted core dumps.

Signed-off-by: default avatarLaszlo Ersek <lersek@redhat.com>
Message-Id: <20230315110157.357958-4-lersek@redhat.com>
Reviewed-by: Eric Blake's avatarEric Blake <eblake@redhat.com>
parent a810ccf4
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment