Skip to content

Commit

Permalink
wip: Hack up test 61 to add/remove archs
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Hromatka <[email protected]>
  • Loading branch information
drakenclimber committed Sep 25, 2023
1 parent 6adf397 commit 28e71d0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/61-sim-transactions.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,22 @@ int main(int argc, char *argv[])
if (rc != 0)
goto out;

if (i == 7) {
rc = seccomp_arch_add(ctx, SCMP_ARCH_S390);
if (rc != 0)
goto out;
}
if (i == 2) {
rc = seccomp_arch_add(ctx, SCMP_ARCH_S390X);
if (rc != 0)
goto out;
}
if (i == 8) {
rc = seccomp_arch_remove(ctx, SCMP_ARCH_S390X);
if (rc != 0)
goto out;
}

if (i % 5) {
for (j = 0; j <= i; j++) {
rc = seccomp_transaction_commit(ctx);
Expand Down

0 comments on commit 28e71d0

Please sign in to comment.