aboutgitcodelistschat:MatrixIRC
path: root/tests/unit/testutil.h
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-04-05 16:35:08 +0200
committerAlice Frosi <afrosi@redhat.com>2023-04-06 14:12:48 +0200
commit1122b45dfdef5da534cb18da7cb9c688f9a2b528 (patch)
tree8e31450225972f1f86f9d71217fd5b67497e6ccd /tests/unit/testutil.h
parent481076deafd78f34a5e5f8b827a34ab9a25931c9 (diff)
downloadseitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar.gz
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar.bz2
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar.lz
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar.xz
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.tar.zst
seitan-1122b45dfdef5da534cb18da7cb9c688f9a2b528.zip
Add support for 64 bits arguments
Diffstat (limited to 'tests/unit/testutil.h')
-rw-r--r--tests/unit/testutil.h7
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 */