tests: extend test coverage of getresgid32 syscall

* tests/getresgid32.c: New file.
* tests/getresgid32.test: New test.
* tests/.gitignore: Add getresgid32.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add getresgid32.test.
This commit is contained in:
Дмитрий Левин 2016-04-19 17:45:26 +00:00
parent 91119e5306
commit 7f3da2ff4c
4 changed files with 24 additions and 0 deletions

1
tests/.gitignore vendored
View File

@ -63,6 +63,7 @@ getgroups
getgroups32
getrandom
getresgid
getresgid32
getresuid
getresuid32
getrusage

View File

@ -115,6 +115,7 @@ check_PROGRAMS = \
getgroups32 \
getrandom \
getresgid \
getresgid32 \
getresuid \
getresuid32 \
getrusage \
@ -354,6 +355,7 @@ DECODER_TESTS = \
getgroups32.test \
getrandom.test \
getresgid.test \
getresgid32.test \
getresuid.test \
getresuid32.test \
getrusage.test \

15
tests/getresgid32.c Normal file
View File

@ -0,0 +1,15 @@
#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_getresgid32
# define SYSCALL_NR __NR_getresgid32
# define SYSCALL_NAME "getresgid32"
# define UGID_TYPE int
# include "getresugid.c"
#else
SKIP_MAIN_UNDEFINED("__NR_getresgid32")
#endif

6
tests/getresgid32.test Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
# Check getresgid32 syscall decoding.
. "${srcdir=.}/init.sh"
run_strace_match_diff -a27