Skip to content

Commit

Permalink
chore(test/drivers): do not assert openat2 exit return code in ia32, …
Browse files Browse the repository at this point in the history
…since it may have different values.

Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Oct 6, 2023
1 parent 6d35991 commit 32a7ec8
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/drivers/test_suites/actions_suite/ia32.cpp.in
Original file line number Diff line number Diff line change
Expand Up @@ -181,22 +181,23 @@ TEST(Actions, ia32_openat2_e)
/*=============================== ASSERT PARAMETERS ===========================*/

/* Parameter 1: fd (type: PT_FD) */
evt_test->assert_numeric_param(1, (int64_t)-EBADF);
// can't assert return code; sometime is -EBADF, sometime -ENOTDIR
//evt_test->assert_numeric_param(1, (int64_t)-EBADF);

/* Parameter 2: dirfd (type: PT_FD) */
evt_test->assert_numeric_param(2, (int64_t)11);

/* Parameter 3: name (type: PT_FSPATH) */
evt_test->assert_charbuf_param(3, "mock_path");
/* Parameter 3: name (type: PT_FSPATH) */
evt_test->assert_charbuf_param(3, "mock_path");

/* Parameter 4: flags (type: PT_FLAGS32) */
evt_test->assert_numeric_param(4, (uint32_t)PPM_O_RDWR);
/* Parameter 4: flags (type: PT_FLAGS32) */
evt_test->assert_numeric_param(4, (uint32_t)PPM_O_RDWR);

/* Parameter 5: mode (type: PT_UINT32) */
evt_test->assert_numeric_param(5, (uint32_t)0);
/* Parameter 5: mode (type: PT_UINT32) */
evt_test->assert_numeric_param(5, (uint32_t)0);

/* Parameter 6: resolve (type: PT_FLAGS32) */
evt_test->assert_numeric_param(6, (uint32_t)PPM_RESOLVE_BENEATH | PPM_RESOLVE_NO_MAGICLINKS);
/* Parameter 6: resolve (type: PT_FLAGS32) */
evt_test->assert_numeric_param(6, (uint32_t)PPM_RESOLVE_BENEATH | PPM_RESOLVE_NO_MAGICLINKS);

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

Expand Down

0 comments on commit 32a7ec8

Please sign in to comment.