summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2017-04-11 20:00:05 +0200
committerRalph Boehme <slow@samba.org>2017-04-20 16:53:16 +0200
commit426e407c533ae6980da672cf2d4e7b01b821a3d3 (patch)
treef854ba4079f29eef77b0a8c6c79d5412f1a5661e /testprogs
parent4a43129b7a7285024f0d2b76e893740f73adce2f (diff)
downloadsamba-426e407c533ae6980da672cf2d4e7b01b821a3d3.tar.gz
lib/util: add a test for samba_runcmd_send()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'testprogs')
-rwxr-xr-xtestprogs/blackbox/tfork.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/testprogs/blackbox/tfork.sh b/testprogs/blackbox/tfork.sh
new file mode 100755
index 00000000000..0f75a8c6aa3
--- /dev/null
+++ b/testprogs/blackbox/tfork.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+sleep 1
+
+echo stdout >&1
+echo $1 >&1
+echo stderror >&2
+
+# close stdout and stderror, but don't exit yet
+exec 1>&-
+exec 2>&-
+
+sleep 1
+
+exit 0