pipewire/test/test-pwtest.c
Barnabás Pőcze 934ab3036e treewide: use SPDX tags to specify copyright information
SPDX tags make the licensing information easy to understand and clear,
and they are machine parseable.

See https://spdx.dev for more information.
2023-02-16 10:54:48 +00:00

36 lines
739 B
C

/* PipeWire */
/* SPDX-FileCopyrightText: Copyright © 2021 Red Hat, Inc. */
/* SPDX-License-Identifier: MIT */
#include "config.h"
#include "pwtest.h"
#include <signal.h>
#include "pwtest-compat.c"
PWTEST(compat_sigabbrev_np)
{
#ifndef HAVE_SIGABBREV_NP
pwtest_str_eq(sigabbrev_np(SIGABRT), "ABRT");
pwtest_str_eq(sigabbrev_np(SIGSEGV), "SEGV");
pwtest_str_eq(sigabbrev_np(SIGSTOP), "STOP");
pwtest_str_eq(sigabbrev_np(SIGCHLD), "CHLD");
pwtest_str_eq(sigabbrev_np(SIGTERM), "TERM");
pwtest_str_eq(sigabbrev_np(SIGKILL), "KILL");
pwtest_str_eq(sigabbrev_np(12345), NULL);
return PWTEST_PASS;
#else
return PWTEST_SKIP;
#endif
}
PWTEST_SUITE(pwtest)
{
pwtest_add(compat_sigabbrev_np, PWTEST_NOARG);
return PWTEST_PASS;
}