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

18 lines
307 B
C

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