From 1122b45dfdef5da534cb18da7cb9c688f9a2b528 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 5 Apr 2023 16:35:08 +0200 Subject: Add support for 64 bits arguments --- tests/unit/testutil.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/unit/testutil.h') diff --git a/tests/unit/testutil.h b/tests/unit/testutil.h index dd4f1e9..7bb971a 100644 --- a/tests/unit/testutil.h +++ b/tests/unit/testutil.h @@ -5,8 +5,10 @@ #include #include #include +#include #include +#include "filter.h" #define STACK_SIZE (1024 * 1024 / 8) @@ -17,8 +19,10 @@ struct args_target { bool open_path; int fd; int nr; + enum arg_type arg_type[6]; void *args[6]; int (*install_filter)(struct args_target *at); + int (*target)(void *); }; extern struct seccomp_notif req; @@ -26,7 +30,7 @@ extern int notifyfd; extern struct args_target *at; extern int pipefd[2]; extern pid_t pid; -extern char path[100]; +extern char path[PATH_MAX]; extern uint16_t tmp_data[TMP_DATA_SIZE]; @@ -43,5 +47,6 @@ void teardown(); int install_notification_filter(struct args_target *at); void continue_target(); void mock_syscall_target(); +void set_args_no_check(struct args_target *at); #endif /* TESTUTIL_H */ -- cgit v1.2.3