Skip to content

Commit

Permalink
cleanup: linting
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <[email protected]>
Co-authored-by: Hendrik Brueckner <[email protected]>
  • Loading branch information
Andreagit97 and hbrueckner committed Jan 31, 2023
1 parent 8f79f64 commit 502ecb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ TEST(SyscallExit, io_uring_registerX)
/* Parameter 5: nr_args (type: PT_UINT32) */
evt_test->assert_numeric_param(5, (uint32_t)nr_args);


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

evt_test->assert_num_params_pushed(5);
Expand Down
10 changes: 5 additions & 5 deletions test/drivers/test_suites/syscall_exit_suite/io_uring_setup_x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ TEST(SyscallExit, io_uring_setupX)

/*=============================== TRIGGER SYSCALL ===========================*/

/* There could be cases in which the structure `io_uring_params`
* doesn't have the filed `feature`, so define it to `0` as default.
*/
uint32_t expected_features = 0;
/* There could be cases in which the structure `io_uring_params`
* doesn't have the filed `feature`, so define it to `0` as default.
*/
uint32_t expected_features = 0;
uint32_t entries = 4;
struct io_uring_params params = {0};
params.sq_entries = 5;
Expand All @@ -28,7 +28,7 @@ TEST(SyscallExit, io_uring_setupX)
params.sq_thread_idle = 8;
#ifdef IORING_FEAT_SINGLE_MMAP
params.features = IORING_FEAT_NODROP;
expected_features = PPM_IORING_FEAT_NODROP;
expected_features = PPM_IORING_FEAT_NODROP;
#endif
assert_syscall_state(SYSCALL_FAILURE, "io_uring_setup", syscall(__NR_io_uring_setup, entries, &params));
int64_t errno_value = -errno;
Expand Down

0 comments on commit 502ecb7

Please sign in to comment.