Comment 3 for bug 1838961

Hi, I found this same issue on a Power system. The RTC does not support alarm there, so this will fail with -ENOTSUPP, which should be -EOPNOTSUPP instead. See kernel patch at [1].

[1] https://<email address hidden>/T/#u

That still require a change on LTP. That should be something like:

diff --git a/testcases/kernel/syscalls/timer_create/timer_create01.c b/testcases/kernel/syscalls/timer_create/timer_create01.c
index 258b6444c..f1ed00e03 100644
--- a/testcases/kernel/syscalls/timer_create/timer_create01.c
+++ b/testcases/kernel/syscalls/timer_create/timer_create01.c
@@ -77,7 +77,7 @@ static void run(unsigned int n)
                                &created_timer_id));

                if (TST_RET != 0) {
- if (possibly_unsupported(clock) && TST_ERR == EINVAL) {
+ if (possibly_unsupported(clock) && (TST_ERR == EINVAL || TST_ERR == ENOTSUP)) {
                                tst_res(TPASS | TTERRNO,
                                        "%s unsupported, failed as expected",
                                        get_clock_str(clock));