tests/read.expect: Skip /dev/stdin if it doesn't exist

Fixes a failing test on alpine/musl.
This commit is contained in:
Fabian Homborg 2018-12-16 21:14:55 +01:00
parent 7afd7a1985
commit ea6631641f

View File

@ -110,7 +110,9 @@ send "def\n"
expect "abc then def\r\n"
expect_prompt
send "r2l </dev/stdin\n"
# Some systems don't have /dev/stdin - effectively skip the test there.
# I'd love to warn about it, but I don't know how.
send "test -r /dev/stdin; and r2l </dev/stdin; or r2l\n"
expect_read_prompt
send "ghi\n"
expect_read_prompt