Skip to content

Commit

Permalink
swapoff01/swapon01: Define max_runtime 1 mins
Browse files Browse the repository at this point in the history
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).

Based on the test consumed time on RPi0 and RPi4, we set runtime to 60s,
that should be enough even for slow risc-v and not that high for other archs.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Li Wang <liwang@redhat.com>
Reviewed-by: Avinesh Kumar <akumar@suse.de>
Acked-by: Jan Stancek <jstancek@redhat.com>
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
  • Loading branch information
pevik authored and wangli5665 committed Sep 9, 2024
1 parent 0ac1e70 commit d60bdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/swapoff/swapoff01.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@ static struct tst_test test = {
.all_filesystems = 1,
.needs_root = 1,
.test_all = verify_swapoff,
.max_runtime = 60,
.setup = setup
};
1 change: 1 addition & 0 deletions testcases/kernel/syscalls/swapon/swapon01.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,6 @@ static struct tst_test test = {
.all_filesystems = 1,
.needs_cgroup_ctrls = (const char *const []){ "memory", NULL },
.test_all = verify_swapon,
.max_runtime = 60,
.setup = setup
};

0 comments on commit d60bdcc

Please sign in to comment.