public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids
@ 2025-10-03 10:13 Avinesh Kumar
  2025-10-03 10:25 ` Petr Vorel
  2025-10-06  8:53 ` Cyril Hrubis
  0 siblings, 2 replies; 16+ messages in thread
From: Avinesh Kumar @ 2025-10-03 10:13 UTC (permalink / raw)
  To: ltp

There can be 8 more clock ids reserved on systems with
CONFIG_POSIX_AUX_CLOCK=y [1]
consequently clock 17 no longer remains an invalid id.

[1] https://lkml.org/lkml/2025/5/19/341

Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
 .../conformance/interfaces/clock_getres/6-2.c                 | 4 ++--
 .../conformance/interfaces/clock_gettime/8-2.c                | 4 ++--
 .../conformance/interfaces/clock_settime/17-2.c               | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
index c44809012..62de33c4f 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_getres/6-2.c
@@ -17,7 +17,7 @@
  *   unassigned value = -1073743192 (ex. of what gcc will set to)
  *   unassigned value = 1073743192 (ex. of what gcc will set to)
  *   -1
- *   17 (currently not = to any clock)
+ *   25 (not associated to any clock, considering posix auxiliary clocks also)
  *
  */
 #include <stdio.h>
@@ -33,7 +33,7 @@ int main(void)
 	struct timespec res;
 	int invalid_tests[NUMINVALIDTESTS] = {
 		INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
-		1073743192, -1, 17
+		1073743192, -1, 25
 	};
 	int i;
 	int failure = 0;
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
index ed4cd4078..66bed9332 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_gettime/8-2.c
@@ -15,7 +15,7 @@
  *   unassigned value = -1073743192 (ex. of what gcc will set to)
  *   unassigned value = 1073743192 (ex. of what gcc will set to)
  *   -1
- *   17 (currently not = to any clock)
+ *   25 (not associated to any clock, considering posix auxiliary clocks also)
  */
 #include <stdio.h>
 #include <time.h>
@@ -27,7 +27,7 @@
 
 static int invalid_tests[NUMINVALIDTESTS] = {
 	INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
-	1073743192, -1, 17
+	1073743192, -1, 25
 };
 
 int main(void)
diff --git a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
index 990e41470..3580ade5b 100644
--- a/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
+++ b/testcases/open_posix_testsuite/conformance/interfaces/clock_settime/17-2.c
@@ -16,7 +16,7 @@
  *   unassigned value = -1073743192 (ex. of what gcc will set to)
  *   unassigned value = 1073743192 (ex. of what gcc will set to)
  *   -1
- *   17 (currently not = to any clock)
+ *   25 (not associated to any clock, considering posix auxiliary clocks also)
  *
  * The date chosen is Nov 12, 2002 ~11:13am (date when test was first
  * written).
@@ -34,7 +34,7 @@
 
 static int invalid_tests[NUMINVALIDTESTS] = {
 	INT32_MIN, INT32_MAX, 2147483647, -2147483647, -1073743192,
-	1073743192, -1, 17
+	1073743192, -1, 25
 };
 
 int main(void)
-- 
2.51.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-10-13 14:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-03 10:13 [LTP] [PATCH] openposix: update invalid clock id to accomodate new auxiliary clock ids Avinesh Kumar
2025-10-03 10:25 ` Petr Vorel
2025-10-03 11:30   ` Avinesh Kumar
2025-10-03 12:26     ` Petr Vorel
2025-10-06  8:53 ` Cyril Hrubis
2025-10-06  9:08   ` Cyril Hrubis
2025-10-07 16:03     ` Avinesh Kumar
2025-10-06  9:43   ` Petr Vorel
2025-10-06  9:56     ` Cyril Hrubis
2025-10-07 14:32   ` [LTP] [PATCH v2] " Avinesh Kumar
2025-10-07 14:36     ` Avinesh Kumar
2025-10-07 21:37       ` Petr Vorel
2025-10-13  9:56         ` Andrea Cervesato via ltp
2025-10-13 11:29           ` Petr Vorel
2025-10-13 14:26             ` Petr Vorel
2025-10-13 14:11     ` Cyril Hrubis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox