]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests: vDSO: unconditionally build getrandom test
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 7 Oct 2024 21:45:57 +0000 (23:45 +0200)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 8 Oct 2024 21:21:36 +0000 (15:21 -0600)
commitfe6305cbc753766191da33b819f82f88986d3ca1
tree55ee7181f3f83e0fc0b74f355a24ebfbbc545699
parent3b5992eaf730bf6c48e2dc8b4ebf360c43e973a7
selftests: vDSO: unconditionally build getrandom test

Rather than building on supported archs, build on all archs, and then
use the presence of the symbol in the vDSO to either skip the test or
move forward with it.

Note that this means that this test no longer checks whether the symbol
was correctly added to the kernel. But hopefully this will be clear
enough to developers and we'll cross our fingers that symbols aren't
removed by accident and not caught after this change.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/vDSO/Makefile
tools/testing/selftests/vDSO/vdso_test_getrandom.c