public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2 3/4] set_mempolicy01: make use of tst_set_timeout
Date: Thu,  9 Jan 2025 12:55:31 +0800	[thread overview]
Message-ID: <20250109045532.43017-4-liwang@redhat.com> (raw)
In-Reply-To: <20250109045532.43017-1-liwang@redhat.com>

Signed-off-by: Li Wang <liwang@redhat.com>
---
 testcases/kernel/syscalls/set_mempolicy/set_mempolicy01.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy01.c b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy01.c
index cd39c6c41..39e7156d0 100644
--- a/testcases/kernel/syscalls/set_mempolicy/set_mempolicy01.c
+++ b/testcases/kernel/syscalls/set_mempolicy/set_mempolicy01.c
@@ -41,9 +41,9 @@ static void setup(void)
 	 * has multiple NUMA nodes, the test matrix combination grows exponentially
 	 * and bring about test time to increase extremely fast.
 	 *
-	 * Here reset the maximum runtime according to the NUMA nodes.
+	 * Here reset the entire timeout according to the NUMA nodes.
 	 */
-	tst_set_runtime(test.runtime * (1 << nodes->cnt/16));
+	tst_set_timeout(test.timeout * (1 << nodes->cnt/16));
 }
 
 static void cleanup(void)
@@ -119,7 +119,7 @@ static struct tst_test test = {
 	.tcnt = 2,
 	.forks_child = 1,
 	.needs_checkpoints = 1,
-	.runtime = 600,
+	.timeout = 600,
 };
 
 #else
-- 
2.47.1


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

  parent reply	other threads:[~2025-01-09  4:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-09  4:55 [LTP] [PATCH v2 0/3] Refine overall timeout and runtime management in LTP Li Wang
2025-01-09  4:55 ` [LTP] [PATCH v2 1/4] lib: redefine the overall timeout logic of test Li Wang
2025-01-09  9:53   ` Cyril Hrubis
2025-01-09  4:55 ` [LTP] [PATCH v2 2/4] lib: add tst_set_timeout for reset entire timeout Li Wang
2025-01-09 10:26   ` Cyril Hrubis
2025-01-09  4:55 ` Li Wang [this message]
2025-01-09 10:26   ` [LTP] [PATCH v2 3/4] set_mempolicy01: make use of tst_set_timeout Cyril Hrubis
2025-01-09 10:33     ` Li Wang
2025-01-09  4:55 ` [LTP] [PATCH v2 4/4] readahead02: reset timeout based the IO test elapsed Li Wang
2025-01-09  9:03   ` Li Wang
2025-01-09  5:02 ` [LTP] [PATCH v2 0/3] Refine overall timeout and runtime management in LTP Li Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250109045532.43017-4-liwang@redhat.com \
    --to=liwang@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox