Skip to content

Commit

Permalink
Fix another instance of ret==EINVAL
Browse files Browse the repository at this point in the history
  • Loading branch information
rocallahan committed Sep 20, 2021
1 parent 79553e3 commit be1c80e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/seccomp.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ static void test_get_action_avail(void) {
// `SECCOMP_RET_ALLOW` is available since the first version of `SECCOMP_GET_ACTION_AVAIL`
uint32_t action = SECCOMP_RET_ALLOW;
int ret = syscall(RR_seccomp, SECCOMP_GET_ACTION_AVAIL, 0, &action);
test_assert(ret == EINVAL || ret == 0);
if (ret != 0) {
test_assert(errno == EINVAL);
}
}

static void test_get_notif_sizes(void) {
Expand Down

0 comments on commit be1c80e

Please sign in to comment.