From: Mayank Mrinal Date: Thu, 1 Jun 2023 09:23:44 +0000 (+0530) Subject: [PATCH] tests: Fix wrong syscall-error in test 29 X-Git-Tag: archive/raspbian/2.5.5-2+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=066b062ac3b6b4df89e6f71327d3c48c7af20d0e;p=libseccomp.git [PATCH] tests: Fix wrong syscall-error in test 29 29-sim-pseudo_syscall.c was using `-11001` syscall. Corrected it to `-10001`. Signed-off-by: Mayank Mrinal Acked-by: Paul Moore Signed-off-by: Tom Hromatka Gbp-Pq: Name tests_Fix_wrong_syscall-error_in_test_29.patch --- diff --git a/tests/29-sim-pseudo_syscall.c b/tests/29-sim-pseudo_syscall.c index acf9c19..86734a8 100644 --- a/tests/29-sim-pseudo_syscall.c +++ b/tests/29-sim-pseudo_syscall.c @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) if (rc == 0) goto out; /* -10001 == 4294957295 (unsigned) */ - rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -11001, 0); + rc = seccomp_rule_add_exact(ctx, SCMP_ACT_KILL, -10001, 0); if (rc == 0) goto out;