strace/tests/getresgid.c
Dmitry V. Levin 91119e5306 tests: extend test coverage of getresgid syscall
* tests/getresgid.c: New file.
* tests/getresgid.test: New test.
* tests/.gitignore: Add getresgid.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add getresgid.test.
2016-04-20 01:08:13 +00:00

22 lines
351 B
C

#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_getresgid
# define SYSCALL_NR __NR_getresgid
# define SYSCALL_NAME "getresgid"
# if defined __NR_getresgid32 && __NR_getresgid != __NR_getresgid32
# define UGID_TYPE short
# else
# define UGID_TYPE int
# endif
# include "getresugid.c"
#else
SKIP_MAIN_UNDEFINED("__NR_getresgid")
#endif