test: add sigabbrev_np() for systems where it's not available

sigabbrev_np() was first added to glibc 2.32 (Aug 2020) which is too recent
for some of the distributions we support.
This commit is contained in:
Peter Hutterer 2021-06-10 08:33:36 +10:00
parent 5cf3c28fa4
commit 731f45ed50
6 changed files with 125 additions and 0 deletions

View file

@ -2,6 +2,7 @@ pwtest_sources = [
'pwtest.h',
'pwtest-implementation.h',
'pwtest.c',
'pwtest-compat.c',
]
pwtest_deps = [
@ -30,6 +31,13 @@ pwtest_lib = static_library(
include_directories: pwtest_inc,
)
test('test pwtest',
executable('test-pwtest',
'test-pwtest.c',
include_directories: pwtest_inc,
link_with: pwtest_lib)
)
# Compilation only, this is the example file for how pwtest works and most
# of its tests will fail.
executable('test-example',