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:
parent
91119e5306
commit
7f3da2ff4c
1
tests/.gitignore
vendored
1
tests/.gitignore
vendored
@ -63,6 +63,7 @@ getgroups
|
||||
getgroups32
|
||||
getrandom
|
||||
getresgid
|
||||
getresgid32
|
||||
getresuid
|
||||
getresuid32
|
||||
getrusage
|
||||
|
@ -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
15
tests/getresgid32.c
Normal 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
6
tests/getresgid32.test
Executable file
@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Check getresgid32 syscall decoding.
|
||||
|
||||
. "${srcdir=.}/init.sh"
|
||||
run_strace_match_diff -a27
|
Loading…
Reference in New Issue
Block a user