From ace464e5066c9f30a13d77d267d9392ce84b3e73 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 21 Feb 2023 15:21:52 +0100 Subject: actions: add reference for the fds --- tests/unit/test_actions.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/unit/test_actions.c b/tests/unit/test_actions.c index e648063..0913133 100644 --- a/tests/unit/test_actions.c +++ b/tests/unit/test_actions.c @@ -312,8 +312,10 @@ static void test_inject(struct action actions[], int n) fd_inj = create_test_fd(); ck_assert_int_ge(fd_inj,0); - actions[0].inj.newfd = fd_inj; - actions[0].inj.oldfd = test_fd; + actions[0].inj.newfd.fd = fd_inj; + actions[0].inj.newfd.type = IMMEDIATE; + actions[0].inj.oldfd.fd = test_fd; + actions[0].inj.oldfd.type = IMMEDIATE; ret = do_actions(NULL, actions, n, -1, notifyfd, req.id); ck_assert_msg(ret == 0, strerror(errno)); -- cgit v1.2.3