aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2025-09-10 11:14:40 +0100
committerRon Yorston <rmy@pobox.com>2025-09-10 11:14:40 +0100
commit3aaade794f10a7f6a00a63e9472cc316581c80c2 (patch)
tree0eef05faa2c3d227b9f225e1a07d87fc6aa661e7 /shell
parent822dbdc354966ddd0d3811947f4a632436c10b6e (diff)
downloadbusybox-w32-3aaade794f10a7f6a00a63e9472cc316581c80c2.tar.gz
busybox-w32-3aaade794f10a7f6a00a63e9472cc316581c80c2.tar.bz2
busybox-w32-3aaade794f10a7f6a00a63e9472cc316581c80c2.zip
shells: add tests missing from last commit
Diffstat (limited to 'shell')
-rw-r--r--shell/ash_test/ash-redir/redir_EINTR1.right2
-rwxr-xr-xshell/ash_test/ash-redir/redir_EINTR1.tests13
-rw-r--r--shell/hush_test/hush-redir/redir_EINTR1.right2
-rwxr-xr-xshell/hush_test/hush-redir/redir_EINTR1.tests13
4 files changed, 30 insertions, 0 deletions
diff --git a/shell/ash_test/ash-redir/redir_EINTR1.right b/shell/ash_test/ash-redir/redir_EINTR1.right
new file mode 100644
index 000000000..287d91f67
--- /dev/null
+++ b/shell/ash_test/ash-redir/redir_EINTR1.right
@@ -0,0 +1,2 @@
1Hello
2Done:0
diff --git a/shell/ash_test/ash-redir/redir_EINTR1.tests b/shell/ash_test/ash-redir/redir_EINTR1.tests
new file mode 100755
index 000000000..cede4d4d8
--- /dev/null
+++ b/shell/ash_test/ash-redir/redir_EINTR1.tests
@@ -0,0 +1,13 @@
1rm -f test.fifo
2mkfifo test.fifo
3
4(sleep 1; kill -chld $$) &
5(sleep 2; echo Hello >test.fifo) &
6
7# We get open("test.fifo") interrupted by SIGCHLD from the first subshell.
8# The shell MUST retry the open (no printing of error messages).
9# Then, the second subshell opens fifo for writing and open unblocks and succeeds.
10cat <test.fifo
11
12echo "Done:$?"
13rm -f test.fifo
diff --git a/shell/hush_test/hush-redir/redir_EINTR1.right b/shell/hush_test/hush-redir/redir_EINTR1.right
new file mode 100644
index 000000000..287d91f67
--- /dev/null
+++ b/shell/hush_test/hush-redir/redir_EINTR1.right
@@ -0,0 +1,2 @@
1Hello
2Done:0
diff --git a/shell/hush_test/hush-redir/redir_EINTR1.tests b/shell/hush_test/hush-redir/redir_EINTR1.tests
new file mode 100755
index 000000000..cede4d4d8
--- /dev/null
+++ b/shell/hush_test/hush-redir/redir_EINTR1.tests
@@ -0,0 +1,13 @@
1rm -f test.fifo
2mkfifo test.fifo
3
4(sleep 1; kill -chld $$) &
5(sleep 2; echo Hello >test.fifo) &
6
7# We get open("test.fifo") interrupted by SIGCHLD from the first subshell.
8# The shell MUST retry the open (no printing of error messages).
9# Then, the second subshell opens fifo for writing and open unblocks and succeeds.
10cat <test.fifo
11
12echo "Done:$?"
13rm -f test.fifo