Dmitry V. Levin
5e9944df2c
* uid.c (print_groups): New function. (SYS_FUNC(setgroups), SYS_FUNC(getgroups)): Use it. Print first syscall argument using %u format. * tests/getgroups.c: New file. * tests/getgroups.test: New test. * tests/getgroups32.c: New file. * tests/getgroups32.test: New test. * tests/setgroups.c: New file. * tests/setgroups.test: New test. * tests/setgroups32.c: New file. * tests/setgroups32.test: New test. * tests/.gitignore: Add getgroups, getgroups32, setgroups, and setgroups32. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add getgroups.test, getgroups32.test, setgroups.test, and setgroups32.test.
13 lines
150 B
C
13 lines
150 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_setgroups32
|
|
|
|
# include "setgroups.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_setgroups32")
|
|
|
|
#endif
|