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

18 lines
302 B
C

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