Skip to content

Commit

Permalink
update(tests): test also delete_module flags parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Lorenzo Susini <[email protected]>
  • Loading branch information
loresuso authored and poiana committed Mar 1, 2024
1 parent a388543 commit 51faaa4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TEST(SyscallExit, delete_moduleX_failure)
/*
* Call the `delete_module` syscall
*/
assert_syscall_state(SYSCALL_FAILURE, "delete_module", syscall(__NR_delete_module, module_name, 0));
assert_syscall_state(SYSCALL_FAILURE, "delete_module", syscall(__NR_delete_module, module_name, O_TRUNC | O_NONBLOCK));
int64_t errno_value = -errno;

/*=============================== TRIGGER SYSCALL ===========================*/
Expand All @@ -42,7 +42,7 @@ TEST(SyscallExit, delete_moduleX_failure)
evt_test->assert_charbuf_param(2, module_name);

/* Parameter 3: flags (type: PT_INT32) */
evt_test->assert_numeric_param(3, 0);
evt_test->assert_numeric_param(3, PPM_DELETE_MODULE_O_TRUNC | PPM_DELETE_MODULE_O_NONBLOCK);

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

Expand Down

0 comments on commit 51faaa4

Please sign in to comment.