[LTP] [PATCH v1] Refactor pidns12 test using new LTP API
Richard Palethorpe
rpalethorpe@suse.de
Tue Nov 1 11:31:16 CET 2022
Hello,
Pushed!
With changes to use TST_EXP_EQ* macro.
i.e.
...
static void child_signal_handler(LTP_ATTRIBUTE_UNUSED int sig, siginfo_t *si, LTP_ATTRIBUTE_UNUSED void *unused)
{
TST_EXP_EQ_LI(si->si_pid, 0);
}
static int child_func(LTP_ATTRIBUTE_UNUSED void *arg)
{
struct sigaction sa;
TST_EXP_EQ_LI(getpid(), 1);
TST_EXP_EQ_LI(getppid(), 0);
...
--
Thank you,
Richard.
More information about the ltp
mailing list