From 4d72417c2efbc1e0aff64c22e87a200a1b2890bd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Wed, 26 Apr 2023 12:15:33 +0200 Subject: [PATCH] test_enosys: provide more diagnostics on failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Weißschuh --- tests/helpers/test_enosys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/helpers/test_enosys.c b/tests/helpers/test_enosys.c index f33a16476a..88e7af3b02 100644 --- a/tests/helpers/test_enosys.c +++ b/tests/helpers/test_enosys.c @@ -133,10 +133,10 @@ int main(int argc, char **argv) }; if (prctl(PR_SET_NO_NEW_PRIVS, 1, 0, 0, 0)) - return EXIT_NOTSUPP; + err(EXIT_NOTSUPP, "prctl(PR_SET_NO_NEW_PRIVS)"); if (prctl(PR_SET_SECCOMP, SECCOMP_MODE_FILTER, &prog)) - return EXIT_NOTSUPP; + err(EXIT_NOTSUPP, "prctl(PR_SET_SECCOMP)"); if (execvp(argv[optind], argv + optind)) err(EXIT_NOTSUPP, "Could not exec"); -- 2.47.3