diff --git a/test/zdtm/static/Makefile b/test/zdtm/static/Makefile index c2296ccc9..82eeec415 100644 --- a/test/zdtm/static/Makefile +++ b/test/zdtm/static/Makefile @@ -232,6 +232,7 @@ TST_NOFILE := \ scm05 \ scm06 \ scm07 \ + scm08 \ scm09 \ aio00 \ aio01 \ @@ -674,6 +675,7 @@ vdso01: LDLIBS += -lrt scm01: CFLAGS += -DKEEP_SENT_FD scm02: CFLAGS += -DSEND_BOTH scm04: CFLAGS += -DSEPARATE +scm08: CFLAGS += -DSEND_ANOTHER_FD scm09: CFLAGS += -DCLOSE_SENDER_FD mntns_link_remap: CFLAGS += -DZDTM_LINK_REMAP mntns_shared_bind02: CFLAGS += -DSHARED_BIND02 diff --git a/test/zdtm/static/scm07.c b/test/zdtm/static/scm07.c index 5474c6b01..e2c0fab66 100644 --- a/test/zdtm/static/scm07.c +++ b/test/zdtm/static/scm07.c @@ -160,6 +160,17 @@ int main(int argc, char **argv) exit(1); } +#ifdef SEND_ANOTHER_FD + if (send_fd(sk[0], p[1]) < 0) { + pr_perror("Can't send descriptor"); + close(sk[0]); + close(sk[1]); + close(p[0]); + close(p[1]); + exit(1); + } +#endif + /* we sent this side of socketpair */ close(p[1]); diff --git a/test/zdtm/static/scm08.c b/test/zdtm/static/scm08.c new file mode 120000 index 000000000..11df4e3d7 --- /dev/null +++ b/test/zdtm/static/scm08.c @@ -0,0 +1 @@ +scm07.c \ No newline at end of file diff --git a/test/zdtm/static/scm08.desc b/test/zdtm/static/scm08.desc new file mode 120000 index 000000000..6e2a849cf --- /dev/null +++ b/test/zdtm/static/scm08.desc @@ -0,0 +1 @@ +scm07.desc \ No newline at end of file