perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / shell / bash / patches / solaris-027.bad_file_number_text.patch
blobb379a1043af2701f3afcf67e7f890252ee0ea28e
1 # Solaris says 'Bad file number' instead of 'Bad file descriptor' on Linux.
2 # Make sure the test finds what it expects
4 # Not suitable for upstream
6 --- tests/redir.right 2016-11-28 04:38:00.494117081 -0800
7 +++ tests/redir.right 2016-11-28 04:36:49.995612525 -0800
8 @@ -64,7 +64,7 @@ f
9 typeset -f f
11 # make sure it was closed
12 -read -u 5 foo 2>&1 | grep -q 'invalid file descriptor'
13 +read -u 5 foo 2>&1 | grep -q 'invalid file number'
14 echo after read
16 exec 5<&0
17 --- tests/redir5.sub 2018-10-08 17:56:14.000000000 +0000
18 +++ tests/redir5.sub 2019-02-02 13:09:26.849690646 +0000
19 @@ -17,7 +17,7 @@ f
20 typeset -f f
22 # make sure it was closed
23 -read -u 5 foo 2>&1 | grep -q 'invalid file descriptor'
24 +read -u 5 foo 2>&1 | grep -q 'invalid file number'
25 echo after read
27 exec 5<&0