[LTP] [PATCH 03/10] ksm: Add max_runtime to tests
Martin Doucha
mdoucha@suse.cz
Tue Aug 30 15:50:00 CEST 2022
ksm02, ksm04 and ksm05 take 10+ seconds to finish. Set max_runtime to avoid
random timeout issues.
Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---
testcases/kernel/mem/ksm/ksm02.c | 1 +
testcases/kernel/mem/ksm/ksm04.c | 1 +
testcases/kernel/mem/ksm/ksm05.c | 1 +
3 files changed, 3 insertions(+)
diff --git a/testcases/kernel/mem/ksm/ksm02.c b/testcases/kernel/mem/ksm/ksm02.c
index 1cb7d8e73..1f5677425 100644
--- a/testcases/kernel/mem/ksm/ksm02.c
+++ b/testcases/kernel/mem/ksm/ksm02.c
@@ -110,6 +110,7 @@ static struct tst_test test = {
},
.test_all = verify_ksm,
.min_kver = "2.6.32",
+ .max_runtime = 20,
.needs_cgroup_ctrls = (const char *const []){ "cpuset", NULL },
};
diff --git a/testcases/kernel/mem/ksm/ksm04.c b/testcases/kernel/mem/ksm/ksm04.c
index 39c741876..f7dc5befc 100644
--- a/testcases/kernel/mem/ksm/ksm04.c
+++ b/testcases/kernel/mem/ksm/ksm04.c
@@ -112,6 +112,7 @@ static struct tst_test test = {
},
.test_all = verify_ksm,
.min_kver = "2.6.32",
+ .max_runtime = 20,
.needs_cgroup_ctrls = (const char *const []){
"memory", "cpuset", NULL
},
diff --git a/testcases/kernel/mem/ksm/ksm05.c b/testcases/kernel/mem/ksm/ksm05.c
index 146a9a3b7..6f94c4a9c 100644
--- a/testcases/kernel/mem/ksm/ksm05.c
+++ b/testcases/kernel/mem/ksm/ksm05.c
@@ -88,6 +88,7 @@ static struct tst_test test = {
.forks_child = 1,
.test_all = test_ksm,
.min_kver = "2.6.32",
+ .max_runtime = 10,
.save_restore = (const struct tst_path_val[]) {
{"!/sys/kernel/mm/ksm/run", "1"},
{}
--
2.37.2
More information about the ltp
mailing list