[LTP] [PATCH v2 2/2] syscalls/kill11, abort01: lower MIN_RLIMIT_CORE size
Yang Xu
xuyang2018.jy@cn.fujitsu.com
Thu Feb 13 11:35:21 CET 2020
>From ulimit manpage, ulimit -c options used 512-bytes-block in posix mode
and used 1024-bytes-block in common mode. Usually, this case used "ulimit
-c 1024" to test, but it will report TCONF in posix mode under unprivileged user.
Since these two cases only check correct signal, lower this size doesn't affect
this result. This also can avoid github issue(640[1],83[2]).
[1]https://github.com/linux-test-project/ltp/issues/640
[2]https://github.com/linux-test-project/ltp/issues/83
Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
---
testcases/kernel/syscalls/abort/abort01.c | 2 +-
testcases/kernel/syscalls/kill/kill11.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/syscalls/abort/abort01.c b/testcases/kernel/syscalls/abort/abort01.c
index 6fde3721c..9505a5eec 100644
--- a/testcases/kernel/syscalls/abort/abort01.c
+++ b/testcases/kernel/syscalls/abort/abort01.c
@@ -62,7 +62,7 @@ void verify_abort(void)
tst_res(TFAIL, "abort() raised %s", tst_strsig(sig));
}
-#define MIN_RLIMIT_CORE (1024 * 1024)
+#define MIN_RLIMIT_CORE (512 * 1024)
static void setup(void)
{
diff --git a/testcases/kernel/syscalls/kill/kill11.c b/testcases/kernel/syscalls/kill/kill11.c
index 4025fcc87..9b81e0095 100644
--- a/testcases/kernel/syscalls/kill/kill11.c
+++ b/testcases/kernel/syscalls/kill/kill11.c
@@ -192,8 +192,7 @@ void do_child(void)
exit(1);
}
-/* 1024 GNU blocks */
-#define MIN_RLIMIT_CORE (1024 * 1024)
+#define MIN_RLIMIT_CORE (512 * 1024)
void setup(void)
{
--
2.18.0
More information about the ltp
mailing list