<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 7, 2022 at 3:41 PM Petr Vorel <<a href="mailto:pvorel@suse.cz">pvorel@suse.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Li,<br>
<br>
> Notes:<br>
>     Ps. I also think we might need .min_mem_[avai|total] field but<br>
>         not sure if it is really necessary to add that.<br>
Is it just a single test? Than maybe not worth of it, but generally I'm for<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">By now I only see sporadic tests have this requirement.</div><div class="gmail_default" style="font-size:small">(hugeshmat04.c, swapping01.c, getrusage03.c)</div><div class="gmail_default" style="font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
adding tags like this into the library - it encapsulates code and gives us a<br>
documentation in docparse.<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Agree, maybe just holding as a future plan for adding that.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
...<br>
> +static void setup(void)<br>
> +{<br>
> +     long long mem_avail = tst_available_mem();<br>
> +<br>
> +     if (mem_avail < 512L*1024)<br>
> +             tst_brk(TCONF, "Needed > 512MB availabe, only have: %ld kB", mem_avail);<br>
typo: s/availabe/available/<br></blockquote><div><br></div><div><div class="gmail_default" style="font-size:small">Thanks.</div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Reviewed-by: Petr Vorel <<a href="mailto:pvorel@suse.cz" target="_blank">pvorel@suse.cz</a>><br>
<br>
Thanks!<br>
<br>
Kind regards,<br>
Petr<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Regards,<br></div><div>Li Wang<br></div></div></div></div>