Skip to content

Commit d7516f2

Browse files
t-8chKAGA-KOKO
authored andcommitted
selftests: vDSO: vdso_test_abi: Drop clock availability tests
The test uses the kselftest.h framework and declares in its testplan to always execute 16 testcases. If any of the clockids were not available, the testplan would not be satisfied anymore and the test would fail. Apparently that never happened, so the clockids are always available. Remove the pointless checks. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250812-vdso-tests-fixes-v2-4-90f499dd35f8@linutronix.de
1 parent 3afe371 commit d7516f2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

tools/testing/selftests/vDSO/vdso_test_abi.c

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -197,37 +197,13 @@ int main(int argc, char **argv)
197197

198198
vdso_test_gettimeofday();
199199

200-
#if _POSIX_TIMERS > 0
201-
202-
#ifdef CLOCK_REALTIME
203200
vdso_test_clock(CLOCK_REALTIME);
204-
#endif
205-
206-
#ifdef CLOCK_BOOTTIME
207201
vdso_test_clock(CLOCK_BOOTTIME);
208-
#endif
209-
210-
#ifdef CLOCK_TAI
211202
vdso_test_clock(CLOCK_TAI);
212-
#endif
213-
214-
#ifdef CLOCK_REALTIME_COARSE
215203
vdso_test_clock(CLOCK_REALTIME_COARSE);
216-
#endif
217-
218-
#ifdef CLOCK_MONOTONIC
219204
vdso_test_clock(CLOCK_MONOTONIC);
220-
#endif
221-
222-
#ifdef CLOCK_MONOTONIC_RAW
223205
vdso_test_clock(CLOCK_MONOTONIC_RAW);
224-
#endif
225-
226-
#ifdef CLOCK_MONOTONIC_COARSE
227206
vdso_test_clock(CLOCK_MONOTONIC_COARSE);
228-
#endif
229-
230-
#endif
231207

232208
vdso_test_time();
233209

0 commit comments

Comments
 (0)