From: Shuah Khan Date: Tue, 25 Jul 2017 19:00:56 +0000 (-0600) Subject: selftests: capabilities: fix to run Non-root +ia, sgidroot => i test X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=52888fe43e1802cfc7dcea1b634d08351a0a73f4;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git selftests: capabilities: fix to run Non-root +ia, sgidroot => i test do_tests() runs sgidnonroot test without fork_wait(). As a result the last test "Non-root +ia, sgidroot => i test" is left out. Fix it. Signed-off-by: Shuah Khan --- diff --git a/tools/testing/selftests/capabilities/test_execve.c b/tools/testing/selftests/capabilities/test_execve.c index 763f37fecfb8..7f2e999839c2 100644 --- a/tools/testing/selftests/capabilities/test_execve.c +++ b/tools/testing/selftests/capabilities/test_execve.c @@ -380,7 +380,8 @@ static int do_tests(int uid, const char *our_path) true, true, true, false); } else { printf("[RUN]\tNon-root +ia, sgidnonroot => i\n"); - exec_other_validate_cap("./validate_cap_sgidnonroot", + if (fork_wait()) + exec_other_validate_cap("./validate_cap_sgidnonroot", false, false, true, false); if (fork_wait()) {