[LTP] [PATCH] getrusage03: skip on small RAM system

Cyril Hrubis chrubis@suse.cz
Mon Feb 7 14:16:21 CET 2022


Hi!
> > Signed-off-by: Li Wang <liwang@redhat.com>
> 
> Acked-by: Jan Stancek <jstancek@redhat.com>
> 
> This should fix the immediate failure, just wondering,
> would there be any downside of replacing that TBROK with TCONF?

I guess that we may end up in a state where the test would TCONF on
every run and it would end up being ingnored.

Can't we just change the consume_mb to lock the memory with mlock() in
the consume_mb() instead? As long as we add the check for a free memory
it should be fine I guess.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list