Dmitry V. Levin
6511b2df01
* tests/setgid32.c: New file. * tests/setgid32.test: New test. * tests/.gitignore: Add setgid32. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add setgid32.test.
18 lines
292 B
C
18 lines
292 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_setgid32
|
|
|
|
# define SYSCALL_NR __NR_setgid32
|
|
# define SYSCALL_NAME "setgid32"
|
|
# define UGID_TYPE int
|
|
# define GETUGID getegid()
|
|
# define CHECK_OVERFLOWUGID(arg)
|
|
# include "setugid.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_setgid32")
|
|
|
|
#endif
|