[LTP] [PATCH v4 1/2] lib: Add .ulimit
Petr Vorel
pvorel@suse.cz
Tue Jan 23 09:36:54 CET 2024
Hi Wei,
> Fixs: #530
^ typo, it should have been
Fixes: #530
Fortunately github formats properly even there is a typo:
https://github.com/pevik/ltp/commit/2e6289d26c325db796cde27765b6765217541d24
But it would not close the ticket.
Also people sometimes do 'git log --grep=Fixes:' to see changes.
...
> diff --git a/doc/C-Test-API.asciidoc b/doc/C-Test-API.asciidoc
> index db16be36e..e3891d5e8 100644
> --- a/doc/C-Test-API.asciidoc
> +++ b/doc/C-Test-API.asciidoc
> @@ -2426,6 +2426,24 @@ Test can be skipped on various conditions: on enabled SecureBoot
> ('.skip_in_secureboot = 1'), lockdown ('.skip_in_lockdown = 1') or in 32-bit
> compat mode ('.skip_in_compat = 1').
> +1.43 Set resource limits
> +~~~~~~~~~~~~~~~~~~~~~~~~
> +
> +'.ulimit' allows to set resource limits on particular resource. NOTE: It sets 'rlim_max'
> +only if it's higher than 'rlim_cur'.
> +
> +[source,c]
> +-------------------------------------------------------------------------------
> +#include "tst_test.h"
> +
> +static struct tst_test test = {
> + ...
> + .ulimit = (const struct tst_ulimit_val[]) {
> + {RLIMIT_STACK, RLIM_INFINITY},
> + {}
> + },
> +};
Here is missing separator, which is required to end formatting, otherwise page
would be horribly broken:
-------------------------------------------------------------------------------
Have look at my fork how it looks like and please, next time test formatting of
doc changes yourself in your fork (preview is enough to see the problems):
https://github.com/pevik/ltp/wiki/TEST#143-set-resource-limits
Both issues can be fixed before merge.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Unless Cyril or Li acks this to be merged before the release, it will be merged
after the release (not a fix).
Kind regards,
Petr
> +
> 2. Common problems
> ------------------
...
More information about the ltp
mailing list