summaryrefslogtreecommitdiff
path: root/gnulib/tests/test-nonblocking-socket.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/tests/test-nonblocking-socket.sh')
m---------gnulib0
-rwxr-xr-xgnulib/tests/test-nonblocking-socket.sh13
2 files changed, 13 insertions, 0 deletions
diff --git a/gnulib b/gnulib
deleted file mode 160000
-Subproject 443bc5ffcf7429e557f4a371b0661abe98ddbc1
diff --git a/gnulib/tests/test-nonblocking-socket.sh b/gnulib/tests/test-nonblocking-socket.sh
new file mode 100755
index 0000000..3818c93
--- /dev/null
+++ b/gnulib/tests/test-nonblocking-socket.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# Test blocking write() with blocking read().
+./test-nonblocking-socket-main${EXEEXT} ./test-nonblocking-socket-child${EXEEXT} 0 || exit 1
+
+# Test non-blocking write() with blocking read().
+./test-nonblocking-socket-main${EXEEXT} ./test-nonblocking-socket-child${EXEEXT} 1 || exit 1
+
+# Test blocking write() with non-blocking read().
+./test-nonblocking-socket-main${EXEEXT} ./test-nonblocking-socket-child${EXEEXT} 2 || exit 1
+
+# Test non-blocking write() with non-blocking read().
+./test-nonblocking-socket-main${EXEEXT} ./test-nonblocking-socket-child${EXEEXT} 3 || exit 1