public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET
@ 2023-02-06  8:38 Petr Vorel
  2023-02-06 11:35 ` Cyril Hrubis
  2023-02-06 11:35 ` Cyril Hrubis
  0 siblings, 2 replies; 4+ messages in thread
From: Petr Vorel @ 2023-02-06  8:38 UTC (permalink / raw)
  To: ltp

These tests were for 2.6.26. There is no point to just print:
TCONF: Newer kernels normalize offset value outside range

Also update docs.

NOTE: there was typo AJD_OFFSET in docs (from a46faf2999).

Fixes: 418585c75f ("Remove old kernel version check in C case when using tst_kvercmp")

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Or, should we test that kernel normalize offset value outside range?
This should be probably added into new file adjtimex04.c, or at least to
other existing file, because this is test for expected errnos.

Kind regards,
Petr

 testcases/kernel/syscalls/adjtimex/adjtimex02.c | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/testcases/kernel/syscalls/adjtimex/adjtimex02.c b/testcases/kernel/syscalls/adjtimex/adjtimex02.c
index dab640ff36..e66ba2a5c7 100644
--- a/testcases/kernel/syscalls/adjtimex/adjtimex02.c
+++ b/testcases/kernel/syscalls/adjtimex/adjtimex02.c
@@ -14,11 +14,6 @@
  * - EFAULT with SET_MODE and invalid timex pointer
  * - EINVAL with ADJ_TICK greater than max tick
  * - EINVAL with ADJ_TICK smaller than min tick
- *
- * On kernels older than 2.6.26:
- *
- * - EINVAL with AJD_OFFSET smaller than min offset
- * - EINVAL with AJD_OFFSET greater than max offset
  */
 
 #include <errno.h>
@@ -57,8 +52,6 @@ static struct test_case {
 	{.modes = SET_MODE, .exp_err = EFAULT},
 	{.modes = ADJ_TICK, .lowlimit = 900000, .delta = 1, .exp_err = EINVAL},
 	{.modes = ADJ_TICK, .highlimit = 1100000, .delta = 1, .exp_err = EINVAL},
-	{.modes = ADJ_OFFSET, .highlimit = 512000L, .delta = 1, .exp_err = EINVAL},
-	{.modes = ADJ_OFFSET, .lowlimit = -512000L, .delta = -1, .exp_err = EINVAL},
 };
 
 static struct test_variants
@@ -93,12 +86,6 @@ static void verify_adjtimex(unsigned int i)
 			if (tc[i].highlimit)
 				buf->tick = tc[i].highlimit + tc[i].delta;
 		}
-		if (tc[i].modes == ADJ_OFFSET) {
-			if (tc[i].lowlimit || tc[i].highlimit) {
-				tst_res(TCONF, "Newer kernels normalize offset value outside range");
-				return;
-			}
-		}
 	}
 
 	if (tc[i].exp_err == EFAULT) {
-- 
2.39.1


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

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

* Re: [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET
  2023-02-06  8:38 [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET Petr Vorel
@ 2023-02-06 11:35 ` Cyril Hrubis
  2023-02-06 11:35 ` Cyril Hrubis
  1 sibling, 0 replies; 4+ messages in thread
From: Cyril Hrubis @ 2023-02-06 11:35 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi!
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>

-- 
Cyril Hrubis
chrubis@suse.cz

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

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

* Re: [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET
  2023-02-06  8:38 [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET Petr Vorel
  2023-02-06 11:35 ` Cyril Hrubis
@ 2023-02-06 11:35 ` Cyril Hrubis
  2023-02-06 16:08   ` Petr Vorel
  1 sibling, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2023-02-06 11:35 UTC (permalink / raw)
  To: Petr Vorel; +Cc: ltp

Hi!
And btw, the patch title has the same AJD typo as well.

-- 
Cyril Hrubis
chrubis@suse.cz

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

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

* Re: [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET
  2023-02-06 11:35 ` Cyril Hrubis
@ 2023-02-06 16:08   ` Petr Vorel
  0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2023-02-06 16:08 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp

> Hi!
> And btw, the patch title has the same AJD typo as well.
Thanks, fixed!

Thanks for a review, merged!

Kind regards,
Petr

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

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

end of thread, other threads:[~2023-02-06 16:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-06  8:38 [LTP] [PATCH 1/1] adjtimex02: Remove tests for AJD_OFFSET Petr Vorel
2023-02-06 11:35 ` Cyril Hrubis
2023-02-06 11:35 ` Cyril Hrubis
2023-02-06 16:08   ` Petr Vorel

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