public inbox for [email protected]
 help / color / mirror / Atom feed
From: Pavel Begunkov <[email protected]>
To: Jens Axboe <[email protected]>, [email protected]
Subject: [PATCH liburing 1/2] tests: add no-op executable for exec
Date: Thu,  9 Sep 2021 14:07:08 +0100	[thread overview]
Message-ID: <d859a7c3c9888e88b80bbf69740d0c6a6ee79009.1631192734.git.asml.silence@gmail.com> (raw)
In-Reply-To: <[email protected]>

There are differences between close and exec from io_uring perspective,
so we want to test exec as well. For that we need a program doing
nothing to exec into.

Signed-off-by: Pavel Begunkov <[email protected]>
---
 .gitignore         | 1 +
 test/Makefile      | 2 ++
 test/exec-target.c | 4 ++++
 3 files changed, 7 insertions(+)
 create mode 100644 test/exec-target.c

diff --git a/.gitignore b/.gitignore
index df0f740..0213bfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -129,6 +129,7 @@
 /test/sqpoll-cancel-hang
 /test/testfile
 /test/submit-link-fail
+/test/exec-target
 /test/*.dmesg
 
 config-host.h
diff --git a/test/Makefile b/test/Makefile
index 176c60c..66f25db 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -136,6 +136,7 @@ test_targets += \
 	sendmsg_fs_cve \
 	rsrc_tags \
 	multi_cq \
+	exec-target \
 	# EOL
 
 all_targets += $(test_targets)
@@ -278,6 +279,7 @@ test_srcs := \
 	sendmsg_fs_cve.c \
 	rsrc_tags.c \
 	multi_cq.c \
+	exec-target.c \
 	# EOL
 
 test_objs := $(patsubst %.c,%.ol,$(patsubst %.cc,%.ol,$(test_srcs)))
diff --git a/test/exec-target.c b/test/exec-target.c
new file mode 100644
index 0000000..50bc2c9
--- /dev/null
+++ b/test/exec-target.c
@@ -0,0 +1,4 @@
+int main(int argc, char *argv[])
+{
+	return 0;
+}
-- 
2.33.0


  reply	other threads:[~2021-09-09 14:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-09 13:07 [PATCH liburing 0/2] exec + timeout cancellation Pavel Begunkov
2021-09-09 13:07 ` Pavel Begunkov [this message]
2021-09-09 13:07 ` [PATCH liburing 2/2] tests: test timeout cancellation fails links Pavel Begunkov
2021-09-09 15:33 ` [PATCH liburing 0/2] exec + timeout cancellation Jens Axboe
2021-09-11 10:46   ` Pavel Begunkov

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=d859a7c3c9888e88b80bbf69740d0c6a6ee79009.1631192734.git.asml.silence@gmail.com \
    [email protected] \
    [email protected] \
    [email protected] \
    /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