selftests/clone3: report a correct number of fails
authorAndrei Vagin <avagin@gmail.com>
Mon, 18 Nov 2019 06:47:49 +0000 (22:47 -0800)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 18 Nov 2019 07:57:54 +0000 (08:57 +0100)
commit28df751539e8e3ba71c5b0d13647d1fdc7c1d287
tree45c8f2a7ffc844dc5a38b3603c8e6e062ea3d642
parent4f5c289ea66a33457d51b305d4d77e1ca4c8ff17
selftests/clone3: report a correct number of fails

In clone3_set_tid, a few test cases are running in a child process.  And
right now, if one of these test cases fails, the whole test will exit
with the success status.

Fixes: 41585bbeeef9 ("selftests: add tests for clone3() with *set_tid")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
Link: https://lore.kernel.org/r/20191118064750.408003-2-avagin@gmail.com
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
tools/testing/selftests/clone3/clone3_set_tid.c