Skip to content

Commit

Permalink
fix(test): expect fd list in poll syscall exit
Browse files Browse the repository at this point in the history
Signed-off-by: Gianmatteo Palmieri <[email protected]>
  • Loading branch information
mrgian committed Feb 28, 2024
1 parent 30afd5f commit 94fe686
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions test/drivers/test_suites/syscall_exit_suite/poll_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,7 @@ TEST(SyscallExit, pollX_success)
evt_test->assert_numeric_param(1, (int64_t)0);

/* Parameter 2: fds (type: PT_FDLIST) */
if(evt_test->is_kmod_engine())
{
/* The logic in the kmod is slightly different: we collect data only if `revents != 0`
* https://github.com/falcosecurity/libs/blob/master/driver/ppm_fillers.c#L3322-L3326
*/
evt_test->assert_fd_list(2, NULL, 0);
}
else
{
evt_test->assert_fd_list(2, (struct fd_poll *)&expected, 2);
}
evt_test->assert_fd_list(2, (struct fd_poll *)&expected, 2);

/*=============================== ASSERT PARAMETERS ===========================*/

Expand Down

0 comments on commit 94fe686

Please sign in to comment.