[LTP] [PATCH v4] Add test case to cover the setting resource limit64 for process

Li Wang liwan@redhat.com
Fri Feb 28 09:39:45 CET 2025


Hi Andrea, Petr,

On Fri, Feb 28, 2025 at 3:45 PM Andrea Cervesato <andrea.cervesato@suse.com>
wrote:

> Hi Li,
>
> thanks for checking, but we still missed a couple of things to fix, like
> infinite loop that might cause some issues and it should be replaced
> with checkpoints as pointed out by Petr.
>

Here I wouldn't suggest using the checkpoint.

RLIMIT_CPU is a resource limit that controls the CPU time but not
wall-clock time, if a process exceeds the soft limit it receives SIGXCPU.
So the while(1) is a good choice unless I missed something.

P.s. the patch caused a compiling error on Alpine I haven't figured out
reason:).
https://github.com/linux-test-project/ltp/actions/runs/13580985467/job/37966850497

Li Wang


More information about the ltp mailing list