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
219 B
C
15 lines
219 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_getrlimit
|
|
|
|
# define NR_GETRLIMIT __NR_getrlimit
|
|
# define STR_GETRLIMIT "getrlimit"
|
|
# include "xgetrlimit.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_getrlimit")
|
|
|
|
#endif
|