[LTP] [PATCH] getrusage03: skip on small RAM system
Petr Vorel
pvorel@suse.cz
Mon Feb 7 08:40:55 CET 2022
Hi Li,
> Notes:
> Ps. I also think we might need .min_mem_[avai|total] field but
> not sure if it is really necessary to add that.
Is it just a single test? Than maybe not worth of it, but generally I'm for
adding tags like this into the library - it encapsulates code and gives us a
documentation in docparse.
...
> +static void setup(void)
> +{
> + long long mem_avail = tst_available_mem();
> +
> + if (mem_avail < 512L*1024)
> + tst_brk(TCONF, "Needed > 512MB availabe, only have: %ld kB", mem_avail);
typo: s/availabe/available/
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Thanks!
Kind regards,
Petr
More information about the ltp
mailing list