diff options
| author | Nam Cao <[email protected]> | 2025-04-11 15:09:43 +0000 |
|---|---|---|
| committer | Christian Brauner <[email protected]> | 2025-05-02 12:28:18 +0000 |
| commit | c6e888d02d51d1e9f9abf1587e6a5618375cac9f (patch) | |
| tree | 3f7487d1536ae37c150a398b82aaa16485bd7f93 /tools/testing/selftests/coredump/stackdump_test.c | |
| parent | selftests: coredump: Fix test failure for slow machines (diff) | |
| download | kernel-c6e888d02d51d1e9f9abf1587e6a5618375cac9f.tar.gz kernel-c6e888d02d51d1e9f9abf1587e6a5618375cac9f.zip | |
selftests: coredump: Raise timeout to 2 minutes
The test's runtime (nearly 20s) is dangerously close to the limit (30s) on
qemu-system-riscv64:
$ time ./stackdump_test > /dev/null
real 0m19.210s
user 0m0.077s
sys 0m0.359s
There could be machines slower than qemu-system-riscv64. Therefore raise
the test timeout to 2 minutes to be safe.
Fixes: 15858da53542 ("selftests: coredump: Add stackdump test")
Signed-off-by: Nam Cao <[email protected]>
Link: https://lore.kernel.org/dd636084d55e7828782728d087fa2298dcab1c8b.1744383419.git.namcao@linutronix.de
Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'tools/testing/selftests/coredump/stackdump_test.c')
| -rw-r--r-- | tools/testing/selftests/coredump/stackdump_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/coredump/stackdump_test.c b/tools/testing/selftests/coredump/stackdump_test.c index 9da10fb5e597..fe3c728cd6be 100644 --- a/tools/testing/selftests/coredump/stackdump_test.c +++ b/tools/testing/selftests/coredump/stackdump_test.c @@ -89,7 +89,7 @@ fail: fprintf(stderr, "Failed to cleanup stackdump test: %s\n", reason); } -TEST_F(coredump, stackdump) +TEST_F_TIMEOUT(coredump, stackdump, 120) { struct sigaction action = {}; unsigned long long stack; |
