diff options
author | 2024-03-06 19:21:25 +0000 | |
---|---|---|
committer | 2024-05-06 13:57:19 -0600 | |
commit | 6d75d75d77cac61552c6c0e95b335dfe0380c153 (patch) | |
tree | 53f3da564822e1e00add70def9edd2cfeadb6ab8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 6.9-rc7 (diff) | |
download | wireguard-linux-6d75d75d77cac61552c6c0e95b335dfe0380c153.tar.xz wireguard-linux-6d75d75d77cac61552c6c0e95b335dfe0380c153.zip |
kselftest: Add mechanism for reporting a KSFT_ result code
Currently there's no helper which a test can use to report it's result as
a KSFT_ result code, we can report a boolean pass/fail but not a skip. This
is sometimes a useful idiom so let's add a helper ksft_test_result_report()
which translates into the relevant report types.
Due to the use of va_args in the result reporting functions this is done as
a macro rather than an inline function as one might expect, none of the
alternatives looked particularly great.
Resolved merge conflict in next betwwen the following commits:
f7d5bcd35d42 ("selftests: kselftest: Mark functions that unconditionally call exit() as __noreturn")
5d3a9274f0d1 ("kselftest: Add mechanism for reporting a KSFT_ result code")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions