Commit bb5754b7 authored by Mark Brown's avatar Mark Brown Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: selftests: timers: Convert posix_timers test to generate KTAP output



[ Upstream commit 071af0c9 ]

Currently the posix_timers test does not produce KTAP output but rather a
custom format. This means that we only get a pass/fail for the suite, not
for each individual test that the suite does. Convert to using the standard
kselftest output functions which result in KTAP output being generated.

As part of this fix the printing of diagnostics in the unlikely event that
the pthread APIs fail, these were using perror() but the API functions
directly return an error code instead of setting errno.

Change-Id: Ib5fe6c438009744f255b828a4dbe7144e24e2600
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Stable-dep-of: 6d029c25 ("selftests/timers/posix_timers: Reimplement check_timer_distribution()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit b04cae49)
Signed-off-by: default avatarEdward Liaw <edliaw@google.com>
parent f9d1da73
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment