All of lore.kernel.org
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2 4/4] readahead02: reset timeout based the IO test elapsed
Date: Thu,  9 Jan 2025 12:55:32 +0800	[thread overview]
Message-ID: <20250109045532.43017-5-liwang@redhat.com> (raw)
In-Reply-To: <20250109045532.43017-1-liwang@redhat.com>

Signed-off-by: Li Wang <liwang@redhat.com>
---
 testcases/kernel/syscalls/readahead/readahead02.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testcases/kernel/syscalls/readahead/readahead02.c b/testcases/kernel/syscalls/readahead/readahead02.c
index de4eb406c..850866c28 100644
--- a/testcases/kernel/syscalls/readahead/readahead02.c
+++ b/testcases/kernel/syscalls/readahead/readahead02.c
@@ -321,16 +321,16 @@ static void test_readahead(unsigned int n)
 
 	/*
 	 * The time consuming of readahead quite depending on the platform IO
-	 * speed, sometime test timeout when the default runtime is used up.
+	 * speed, sometime test timed out when the default timeout is used up.
 	 *
 	 *  readahead02.c:221: TINFO: Test #2: POSIX_FADV_WILLNEED on file
 	 *  readahead02.c:285: TINFO: read_testfile(0) took: 26317623 usec
 	 *  readahead02.c:286: TINFO: read_testfile(1) took: 26101484 usec
 	 *
-	 * Here raise the maximum runtime dynamically.
+	 * Here extend the entire timeout dynamically.
 	 */
 	if ((tc+1)->readahead)
-		tst_set_runtime(test.runtime + (usec + usec_ra) / 1000000);
+		tst_set_timeout(test.timeout + (usec + usec_ra) / 1000000);
 }
 
 
@@ -422,7 +422,7 @@ static struct tst_test test = {
 	},
 	.test = test_readahead,
 	.tcnt = ARRAY_SIZE(tcases),
-	.runtime = 30,
+	.timeout = 30,
 	.tags = (const struct tst_tag[]) {
 		{"linux-git", "b833a3660394"},
 		{"linux-git", "5b910bd615ba"},
-- 
2.47.1


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

  parent reply	other threads:[~2025-01-09  4:57 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 ` [LTP] [PATCH v2 3/4] set_mempolicy01: make use of tst_set_timeout Li Wang
2025-01-09 10:26   ` Cyril Hrubis
2025-01-09 10:33     ` Li Wang
2025-01-09  4:55 ` Li Wang [this message]
2025-01-09  9:03   ` [LTP] [PATCH v2 4/4] readahead02: reset timeout based the IO test elapsed 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-5-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.