[LTP] [PATCH v2 1/1] swapoff01: Define max_runtime 45s

Petr Vorel pvorel@suse.cz
Tue Sep 3 16:03:26 CEST 2024


Test run mostly below 1 sec per filesystem, only NTFS is very slow
~ 10-15 sec depending on architecture.

Also this is the only tests in syscalls which fails on due timeout on
emulated risc-v with LTP_TIMEOUT_MUL=2,LTP_RUNTIME_MUL=2 (with the
default 30s runtime => 1 min due LTP_RUNTIME_MUL=2).

Therefore set runtime to 45s, that should be enough even for slow
risc-v and not that high for other archs.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Changes v1->v2:
* 60 => 45

 testcases/kernel/syscalls/swapoff/swapoff01.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/testcases/kernel/syscalls/swapoff/swapoff01.c b/testcases/kernel/syscalls/swapoff/swapoff01.c
index 314630267d..ef75c92de0 100644
--- a/testcases/kernel/syscalls/swapoff/swapoff01.c
+++ b/testcases/kernel/syscalls/swapoff/swapoff01.c
@@ -53,5 +53,6 @@ static struct tst_test test = {
 	.all_filesystems = 1,
 	.needs_root = 1,
 	.test_all = verify_swapoff,
+	.max_runtime = 45,
 	.setup = setup
 };
-- 
2.45.2



More information about the ltp mailing list