strace/tests/getrlimit.c
Dmitry V. Levin 4e085d0b46 tests: check decoding of setrlimit, getrlimit, and ugetrlimit syscalls
* 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.
2016-06-06 22:06:46 +00:00

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