Skip to contentSkip to conversation

testsuite/smokey/y2038: Skip clock_settime test of not using legacy TSC

PATCH New Jan Kiszka 1 participant 1 message Jun 4, 2021

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 testsuite/smokey/y2038: Skip clock_settime test of not using legacy TSC

From: Jan Kiszka <[email protected]>

It's not provided in this case. libcobalt calls libc instead.

---
 testsuite/smokey/y2038/syscall-tests.c | 3 +++
 1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/testsuite/smokey/y2038/syscall-tests.c
index 24580f5a8..a64584d8c 100644

testsuite/smokey/y2038/syscall-tests.c +3 -0
@@ -204,6 +204,9 @@ static int test_sc_cobalt_clock_settime64(void)
 	struct xn_timespec64 ts64, now64;
 	struct timespec now;
 
+	if (!cobalt_use_legacy_tsc())
+		return 0; // Not implemented, nothing to test, success
+
 	/* Make sure we don't crash because of NULL pointers */
 	ret = XENOMAI_SYSCALL2(sc_nr, NULL, NULL);
 	if (ret == -ENOSYS) {
Signature · 1 line
2.26.2