From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/2] libclone: Move test.h include to C file
Date: Fri, 19 Feb 2021 15:47:03 +0100 [thread overview]
Message-ID: <20210219144704.20433-2-pvorel@suse.cz> (raw)
In-Reply-To: <20210219144704.20433-1-pvorel@suse.cz>
so that libclone.h can be used in new API tests.
This requires to include test.sh earlier in mqns_helper.h.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
testcases/kernel/containers/libclone/libclone.c | 1 +
testcases/kernel/containers/libclone/libclone.h | 1 -
testcases/kernel/containers/mqns/mqns_helper.h | 2 +-
3 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/containers/libclone/libclone.c b/testcases/kernel/containers/libclone/libclone.c
index 239674ff8..8ffde0ffc 100644
--- a/testcases/kernel/containers/libclone/libclone.c
+++ b/testcases/kernel/containers/libclone/libclone.c
@@ -15,6 +15,7 @@
*
***************************************************************************/
#include "libclone.h"
+#include "test.h"
int do_clone_tests(unsigned long clone_flags,
int (*fn1) (void *arg), void *arg1,
diff --git a/testcases/kernel/containers/libclone/libclone.h b/testcases/kernel/containers/libclone/libclone.h
index b8740f1bc..354555a26 100644
--- a/testcases/kernel/containers/libclone/libclone.h
+++ b/testcases/kernel/containers/libclone/libclone.h
@@ -27,7 +27,6 @@
#include <sys/syscall.h>
#include <signal.h>
#include "lapi/syscalls.h"
-#include "test.h"
#include "lapi/namespaces_constants.h"
#define T_UNSHARE 0
diff --git a/testcases/kernel/containers/mqns/mqns_helper.h b/testcases/kernel/containers/mqns/mqns_helper.h
index 605378d48..463330ce6 100644
--- a/testcases/kernel/containers/mqns/mqns_helper.h
+++ b/testcases/kernel/containers/mqns/mqns_helper.h
@@ -21,9 +21,9 @@
#include <sys/types.h>
#include <mqueue.h>
#include "../libclone/libclone.h"
+#include "test.h"
#include "lapi/syscalls.h"
#include "safe_macros.h"
-#include "test.h"
static int dummy_child(void *v)
{
--
2.30.1
next prev parent reply other threads:[~2021-02-19 14:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-19 14:47 [LTP] [PATCH 0/2] netns_netlink: Rewrite into new API Petr Vorel
2021-02-19 14:47 ` Petr Vorel [this message]
2021-05-11 8:20 ` [LTP] [PATCH 1/2] libclone: Move test.h include to C file Cyril Hrubis
2021-05-11 13:54 ` Petr Vorel
2021-02-19 14:47 ` [LTP] [PATCH 2/2] netns_netlink: Rewrite into new API Petr Vorel
2021-02-19 15:57 ` Richard Palethorpe
2021-02-22 8:28 ` Petr Vorel
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=20210219144704.20433-2-pvorel@suse.cz \
--to=pvorel@suse.cz \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).