[LTP] [PATCH 2/2] mmap3: reset runtime to 10s
Li Wang
liwang@redhat.com
Fri May 20 10:36:27 CEST 2022
As we have removed the "-x" support from this test, there is no way to
reduce running time by multiply small float number.
Let's set 10 seconds for the max_runtime (approximately equal to -x 0.002).
Signed-off-by: Li Wang <liwang@redhat.com>
---
runtest/mm | 2 +-
testcases/kernel/mem/mtest06/mmap3.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/runtest/mm b/runtest/mm
index 6537666a9..4ecb61f24 100644
--- a/runtest/mm
+++ b/runtest/mm
@@ -16,7 +16,7 @@ mtest01w mtest01 -p80 -w
mtest05 mmstress
mtest06 mmap1
mtest06_2 mmap2 -x 0.002 -a -p
-mtest06_3 mmap3 -x 0.002 -p
+mtest06_3 mmap3 -p
# Remains diabled till the infinite loop problem is solved
#mtest-6_4 shmat1 -x 0.00005
diff --git a/testcases/kernel/mem/mtest06/mmap3.c b/testcases/kernel/mem/mtest06/mmap3.c
index 6d47b01e7..3064f5cf7 100644
--- a/testcases/kernel/mem/mtest06/mmap3.c
+++ b/testcases/kernel/mem/mtest06/mmap3.c
@@ -182,5 +182,5 @@ static struct tst_test test = {
.setup = setup,
.cleanup = cleanup,
.test_all = test_mmap,
- .max_runtime = 86400,
+ .max_runtime = 10,
};
--
2.31.1
More information about the ltp
mailing list