Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPavel Tikhomirov <ptikhomirov@virtuozzo.com>2022-06-09 17:48:37 +0300
committerAndrei Vagin <avagin@gmail.com>2022-06-13 08:34:23 +0300
commit8a147da2d2b343f04f1b0a3a29dc94a1c95731d1 (patch)
tree065b5c76f8ba76775296e3a39c159f93232cecf6 /test
parentbaa4516e626453eb10336af06b725a07818210b4 (diff)
zdtm/scm: add scm09 test with closed sender fd
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Diffstat (limited to 'test')
-rw-r--r--test/zdtm/static/Makefile2
-rw-r--r--test/zdtm/static/scm00.c3
l---------test/zdtm/static/scm09.c1
3 files changed, 6 insertions, 0 deletions
diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile
index 9dc02d4a5..aafc63f04 100644
--- a/test/zdtm/static/Makefile
+++ b/test/zdtm/static/Makefile
@@ -199,6 +199,7 @@ TST_NOFILE := \
scm04 \
scm05 \
scm06 \
+ scm09 \
aio00 \
aio01 \
fd \
@@ -591,6 +592,7 @@ vdso01: LDLIBS += -lrt
scm01: CFLAGS += -DKEEP_SENT_FD
scm02: CFLAGS += -DSEND_BOTH
scm04: CFLAGS += -DSEPARATE
+scm09: CFLAGS += -DCLOSE_SENDER_FD
mntns_link_remap: CFLAGS += -DZDTM_LINK_REMAP
mntns_shared_bind02: CFLAGS += -DSHARED_BIND02
mntns_root_bind02: CFLAGS += -DROOT_BIND02
diff --git a/test/zdtm/static/scm00.c b/test/zdtm/static/scm00.c
index d66975582..670e6fd6a 100644
--- a/test/zdtm/static/scm00.c
+++ b/test/zdtm/static/scm00.c
@@ -106,6 +106,9 @@ int main(int argc, char **argv)
p[0] = -1;
#endif
#endif
+#ifdef CLOSE_SENDER_FD
+ close(sk[0]);
+#endif
test_daemon();
test_waitsig();
diff --git a/test/zdtm/static/scm09.c b/test/zdtm/static/scm09.c
new file mode 120000
index 000000000..4cab0edd2
--- /dev/null
+++ b/test/zdtm/static/scm09.c
@@ -0,0 +1 @@
+scm00.c \ No newline at end of file