diff options
author | Alice Frosi <afrosi@redhat.com> | 2023-02-21 15:21:52 +0100 |
---|---|---|
committer | Alice Frosi <afrosi@redhat.com> | 2023-02-21 16:33:04 +0100 |
commit | ace464e5066c9f30a13d77d267d9392ce84b3e73 (patch) | |
tree | 18c478d840e6fcec3e51249f170e34d3c035e6ed /tests/unit/test_actions.c | |
parent | 4cad95ec182ab9f3d28f37cfab9fb28ccb596cd7 (diff) | |
download | seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.gz seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.bz2 seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.lz seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.xz seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.tar.zst seitan-ace464e5066c9f30a13d77d267d9392ce84b3e73.zip |
actions: add reference for the fds
Diffstat (limited to 'tests/unit/test_actions.c')
-rw-r--r-- | tests/unit/test_actions.c | 6 |
1 files changed, 4 insertions, 2 deletions
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)); |