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

18 lines
307 B
C

#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_setresgid32
# define SYSCALL_NR __NR_setresgid32
# define SYSCALL_NAME "setresgid32"
# define UGID_TYPE int
# define GETUGID getegid()
# define CHECK_OVERFLOWUGID(arg)
# include "setresugid.c"
#else
SKIP_MAIN_UNDEFINED("__NR_setresgid32")
#endif