From: Petr Vorel <pvorel@suse.cz>
To: Andrea Cervesato <andrea.cervesato@suse.com>, ltp@lists.linux.it
Subject: Re: [LTP] [PATCH v4] Rewrite userns06.c using new LTP API
Date: Tue, 19 Apr 2022 09:22:27 +0200 [thread overview]
Message-ID: <Yl5jM+a7yGtVpaIG@pevik> (raw)
In-Reply-To: <YkrqzV+W2qYKJuIw@pevik>
Hi Andrea,
Reviewed-by: Petr Vorel <pvorel@suse.cz>
2 small things:
Actually adding one more #ifdef HAVE_LIBCAP
might be better than calling tst_brk() manually (this is better than my previous
suggestion):
#include "config.h"
#ifdef HAVE_LIBCAP
# define TST_NO_DEFAULT_MAIN
#endif
#include "tst_test.h"
#ifdef HAVE_LIBCAP
#include <string.h>
#include <sys/wait.h>
#include <sys/capability.h>
int main(int argc, char *argv[])
{
...
}
#else
TST_TEST_TCONF("System is missing libcap");
#endif
But if you prefer to original version (define main), then TCONF should be used.
Also #define _GNU_SOURCE is not needed, it should be dropped.
If you agree, I can merge it with proposed changes.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2022-04-19 7:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-01 5:08 [LTP] [PATCH v4] Rewrite userns06.c using new LTP API Andrea Cervesato
2022-04-04 10:33 ` Petr Vorel
2022-04-04 10:52 ` Andrea Cervesato via ltp
2022-04-04 12:55 ` Petr Vorel
2022-04-19 7:22 ` Petr Vorel [this message]
2022-04-19 7:36 ` Andrea Cervesato via ltp
2022-04-19 12:16 ` Cyril Hrubis
-- strict thread matches above, loose matches on Subject: below --
2022-04-26 8:47 Andrea Cervesato
2022-04-26 13:57 ` Cyril Hrubis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yl5jM+a7yGtVpaIG@pevik \
--to=pvorel@suse.cz \
--cc=andrea.cervesato@suse.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.