diff options
Diffstat (limited to 'tests/unit/testutil.h')
-rw-r--r-- | tests/unit/testutil.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <stdlib.h> #include <stdbool.h> #include <stddef.h> +#include <limits.h> #include <check.h> +#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 */ |