summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-04-17 19:27:28 +0200
committerBruno Haible <bruno@clisp.org>2011-04-17 19:28:18 +0200
commit8a0661a8db248b45ced989b23e165fda6d69b3b4 (patch)
tree54eaf578f4aa07b5ca2e969e91f7ca167df9fd9a /modules
parent5f65840b727428949c8dc56727a6313d7186cecc (diff)
downloadgnulib-8a0661a8db248b45ced989b23e165fda6d69b3b4.tar.gz
nonblocking: Add tests for pipes.
* tests/test-nonblocking-pipe.sh: New file. * tests/test-nonblocking-pipe-main.c: New file. * tests/test-nonblocking-pipe-child.c: New file. * tests/test-nonblocking-pipe.h: New file. * tests/test-nonblocking-writer.h: New file. * tests/test-nonblocking-reader.h: New file. * tests/test-nonblocking-misc.h: New file. * modules/nonblocking-pipe-tests: New file. * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
Diffstat (limited to 'modules')
-rw-r--r--modules/nonblocking-pipe-tests34
-rw-r--r--modules/nonblocking-tests1
2 files changed, 35 insertions, 0 deletions
diff --git a/modules/nonblocking-pipe-tests b/modules/nonblocking-pipe-tests
new file mode 100644
index 0000000000..428452f78e
--- /dev/null
+++ b/modules/nonblocking-pipe-tests
@@ -0,0 +1,34 @@
+Files:
+tests/test-nonblocking-pipe.sh
+tests/test-nonblocking-pipe-main.c
+tests/test-nonblocking-pipe-child.c
+tests/test-nonblocking-pipe.h
+tests/test-nonblocking-writer.h
+tests/test-nonblocking-reader.h
+tests/test-nonblocking-misc.h
+tests/macros.h
+
+Depends-on:
+stdbool
+unistd
+nonblocking
+wait-process
+pipe-posix
+dup2
+environ
+posix_spawnp
+binary-io
+gettimeofday
+snprintf
+vsnprintf
+strerror
+ssize_t
+usleep
+read
+write
+
+configure.ac:
+
+Makefile.am:
+TESTS += test-nonblocking-pipe.sh
+check_PROGRAMS += test-nonblocking-pipe-main test-nonblocking-pipe-child
diff --git a/modules/nonblocking-tests b/modules/nonblocking-tests
index a1e5e7c03c..bd6cc134bd 100644
--- a/modules/nonblocking-tests
+++ b/modules/nonblocking-tests
@@ -5,6 +5,7 @@ tests/macros.h
Depends-on:
close
pipe-posix
+nonblocking-pipe-tests
configure.ac: