Skip to content

Commit

Permalink
Don't assert result param in security_file_mprotect test
Browse files Browse the repository at this point in the history
Signed-off-by: David Windsor <[email protected]>
  • Loading branch information
dwindsor committed Dec 22, 2023
1 parent 8f4143e commit 077f8f1
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,16 @@ TEST(GenericTracepoints, security_file_mprotect)

/* Please note here we cannot assert all the params, we check only the possible ones. */

/* Parameter 1: res (type: PT_ERRNO)*/
evt_test->assert_numeric_param(1, (int64_t)0);

/* Parameter 2: addr_start (type: PT_UINT64) */
/* Parameter 1: addr_start (type: PT_UINT64) */
evt_test->assert_only_param_len(2, sizeof(uint64_t));

/* Parameter 3: addr_end (type: PT_UINT64) */
/* Parameter 2: addr_end (type: PT_UINT64) */
evt_test->assert_only_param_len(3, sizeof(uint64_t));

/* Parameter 4: reqprot (type: PT_FLAGS32) */
/* Parameter 3: reqprot (type: PT_FLAGS32) */
evt_test->assert_numeric_param(4, (int32_t)PROT_READ);

/* Parameter 5: prot (type: PT_FLAGS32) */
/* Parameter 4: prot (type: PT_FLAGS32) */
evt_test->assert_numeric_param(5, (int32_t)PROT_READ);

/*=============================== ASSERT PARAMETERS ===========================*/
Expand Down

0 comments on commit 077f8f1

Please sign in to comment.