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

Jan Kiszka jan.kiszka at siemens.com
Fri Jun 4 15:02:13 CEST 2021


From: Jan Kiszka <jan.kiszka at siemens.com>

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

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
 testsuite/smokey/y2038/syscall-tests.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/testsuite/smokey/y2038/syscall-tests.c
b/testsuite/smokey/y2038/syscall-tests.c
index 24580f5a8..a64584d8c 100644
--- a/testsuite/smokey/y2038/syscall-tests.c
+++ b/testsuite/smokey/y2038/syscall-tests.c
@@ -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) {
-- 
2.26.2



More information about the Xenomai mailing list