selftests: x86: test_vsyscall: reorder code to reduce #ifdef blocks
authorMuhammad Usama Anjum <usama.anjum@collabora.com>
Wed, 27 Mar 2024 18:46:34 +0000 (23:46 +0500)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 6 May 2024 19:57:19 +0000 (13:57 -0600)
commit113ad23f6e5bd77636e6fafec3b29563398faf48
treed9aa359ffcf5b7b5a4a75193b12456daee71f592
parentd6283d08c75b2d403fd05feb9bbe79e063db391c
selftests: x86: test_vsyscall: reorder code to reduce #ifdef blocks

There are multiple #ifdef blocks inside functions where they return just
0 if #ifdef is false. This makes number of tests counting difficult.
Move those functions inside one #ifdef block and move all of them
together. This is preparatory patch for next patch to convert this into
TAP format. So in this patch, we are just moving functions around
without any changes.

With and without this patch, the output of this patch is same.

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/x86/test_vsyscall.c