]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: vDSO: vdso_test_getrandom: Always print TAP header
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 11 Jun 2025 10:33:58 +0000 (12:33 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 1 Jul 2025 13:50:42 +0000 (15:50 +0200)
commit1158220b24674edaf885433153deb4f0e5c7d331
treed659c2f902213f8cb6b9d6b5d3fc6aa01b31ce53
parent58265d6424c69daf32ed96288709b23f7538c3e2
selftests: vDSO: vdso_test_getrandom: Always print TAP header

The TAP specification requires that the output begins with a header line.
If vgetrandom_init() fails and skips the test, that header line is missing.

Call vgetrandom_init() after ksft_print_header().

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Link: https://lore.kernel.org/all/20250611-selftests-vdso-fixes-v3-8-e62e37a6bcf5@linutronix.de
tools/testing/selftests/vDSO/vdso_test_getrandom.c