mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 20:40:05 +00:00
posix: Check pidfd_spawn with tst-spawn7-pid
Without using the macro, posix_spawn is used instead. Checked on x86_64-linux-gnu.
This commit is contained in:
parent
578190b7e4
commit
0575073dda
@ -86,7 +86,7 @@ spawn_signal_test (const char *type, const posix_spawnattr_t *attr)
|
||||
PID_T_TYPE pid;
|
||||
siginfo_t sinfo;
|
||||
|
||||
TEST_COMPARE (posix_spawn (&pid, spargs[0], NULL, attr, spargs, environ), 0);
|
||||
TEST_COMPARE (POSIX_SPAWN (&pid, spargs[0], NULL, attr, spargs, environ), 0);
|
||||
TEST_COMPARE (WAITID (P_ALL, 0, &sinfo, WEXITED), 0);
|
||||
TEST_COMPARE (sinfo.si_code, CLD_EXITED);
|
||||
TEST_COMPARE (sinfo.si_status, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user