Dmitry V. Levin
4e085d0b46
* tests/getrlimit.c: New file. * tests/setrlimit.c: Likewise. * tests/ugetrlimit.c: Likewise. * tests/xgetrlimit.c: Likewise. * tests/getrlimit.test: New test. * tests/setrlimit.test: Likewise. * tests/ugetrlimit.test: Likewise. * tests/.gitignore: Add getrlimit, setrlimit, and ugetrlimit. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add getrlimit.test, setrlimit.test, and ugetrlimit.test. (EXTRA_DIST): Add xgetrlimit.c.
15 lines
223 B
C
15 lines
223 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_ugetrlimit
|
|
|
|
# define NR_GETRLIMIT __NR_ugetrlimit
|
|
# define STR_GETRLIMIT "ugetrlimit"
|
|
# include "xgetrlimit.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_ugetrlimit")
|
|
|
|
#endif
|