]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_enosys: provide more diagnostics on failure
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 10:15:33 +0000 (12:15 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 10:55:27 +0000 (12:55 +0200)
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/helpers/test_enosys.c

index f33a16476af87897125ba3f3369ef8f7894b3f47..88e7af3b02feef8388d22ceedc477e33ab6184f0 100644 (file)
@@ -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");