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

22 lines
351 B
C

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