From 96c3c7bea4fe20802d7e5c82dba711a360083ff1 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 31 May 2012 11:38:00 +0400 Subject: [PATCH] zdtm: Add sockets_spair test case Code to test socketpair (extracted from previous sockets00 test case). Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- test/zdtm.sh | 1 + test/zdtm/live/static/Makefile | 1 + test/zdtm/live/static/sockets_spair.c | 58 +++++++++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 test/zdtm/live/static/sockets_spair.c diff --git a/test/zdtm.sh b/test/zdtm.sh index bf408d483..3825d7343 100644 --- a/test/zdtm.sh +++ b/test/zdtm.sh @@ -28,6 +28,7 @@ transition/file_read transition/fork static/zombie00 static/sockets00 +static/sockets_spair static/socket_queues static/pid00 static/pstree diff --git a/test/zdtm/live/static/Makefile b/test/zdtm/live/static/Makefile index 17a6e79f7..6ce37a6bf 100644 --- a/test/zdtm/live/static/Makefile +++ b/test/zdtm/live/static/Makefile @@ -35,6 +35,7 @@ TST_NOFILE = \ utsname \ pstree \ sockets00 \ + sockets_spair \ socket_queues \ ipc_namespace \ selfexe00 \ diff --git a/test/zdtm/live/static/sockets_spair.c b/test/zdtm/live/static/sockets_spair.c new file mode 100644 index 000000000..f2c916f34 --- /dev/null +++ b/test/zdtm/live/static/sockets_spair.c @@ -0,0 +1,58 @@ +#define _GNU_SOURCE + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "zdtmtst.h" + +const char *test_doc = "Test unix stream socketpair\n"; +const char *test_author = "Cyrill Gorcunov