Fix unit tests for read to stdout behavior

This commit is contained in:
Mahmoud Al-Qudsi 2017-10-10 08:34:50 +02:00
parent 8ffc3ab242
commit 101ada83cb
4 changed files with 8 additions and 4 deletions

View file

@ -1,7 +1,6 @@
#################### ####################
# Read with no vars is an error # Read with no vars is not an error
read: Expected at least 1 args, got only 0
#################### ####################
# Read with -a and anything other than exactly on var name is an error # Read with -a and anything other than exactly on var name is an error

View file

@ -16,6 +16,11 @@ expect_prompt
# read # read
send_line "read"
expect_read_prompt
send_line "text"
expect_prompt
send_line "read foo" send_line "read foo"
expect_read_prompt expect_read_prompt
send_line "text" send_line "text"

View file

@ -3,7 +3,7 @@
# Test read builtin and IFS. # Test read builtin and IFS.
# #
logmsg Read with no vars is an error logmsg Read with no vars is not an error
read read
logmsg Read with -a and anything other than exactly on var name is an error logmsg Read with -a and anything other than exactly on var name is an error

View file

@ -1,6 +1,6 @@
#################### ####################
# Read with no vars is an error # Read with no vars is not an error
#################### ####################
# Read with -a and anything other than exactly on var name is an error # Read with -a and anything other than exactly on var name is an error