From: Thomas Weißschuh Date: Wed, 26 Apr 2023 10:15:33 +0000 (+0200) Subject: test_enosys: provide more diagnostics on failure X-Git-Tag: v2.39~46^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d72417c2efbc1e0aff64c22e87a200a1b2890bd;p=thirdparty%2Futil-linux.git test_enosys: provide more diagnostics on failure Signed-off-by: Thomas Weißschuh --- 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");