[LTP] [PATCH v1] sigpending: use direct syscall
Matthias Maennich
maennich@google.com
Thu Feb 7 16:51:53 CET 2019
Expand coverage to the Android platform.
Signed-off-by: Matthias Maennich <maennich@google.com>
---
testcases/kernel/syscalls/sigpending/sigpending02.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/testcases/kernel/syscalls/sigpending/sigpending02.c b/testcases/kernel/syscalls/sigpending/sigpending02.c
index a38157ae1..ff8b59c8c 100644
--- a/testcases/kernel/syscalls/sigpending/sigpending02.c
+++ b/testcases/kernel/syscalls/sigpending/sigpending02.c
@@ -17,13 +17,14 @@
#include <sys/types.h>
#include "tst_test.h"
+#include "lapi/syscalls.h"
static void run(void)
{
/* set sigset to point to an invalid location */
sigset_t *sigset = (sigset_t *) - 1;
- TEST(sigpending(sigset));
+ TEST(tst_syscall(__NR_rt_sigpending, sigset, NSIG / 8));
/* check return code */
if (TST_RET == -1) {
--
2.20.1.611.gfbb209baf1-goog
More information about the ltp
mailing list