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

18 lines
292 B
C

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