summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJeff Quast <contact@jeffquast.com>2014-11-24 20:41:58 -0800
committerJeff Quast <contact@jeffquast.com>2014-11-24 20:41:58 -0800
commit464486014125e20c5c76c8a1f27cf34b46342144 (patch)
treeda8ea61c3beb51ad21be906b2d2198db6dd7e536 /tests
parent76f8584440ffeeb2ad5b8727a7faa950741e17dc (diff)
downloadpexpect-464486014125e20c5c76c8a1f27cf34b46342144.tar.gz
This should now pass on Linux
Diffstat (limited to 'tests')
-rw-r--r--tests/test_maxcanon.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_maxcanon.py b/tests/test_maxcanon.py
index 5f28c53..d343451 100644
--- a/tests/test_maxcanon.py
+++ b/tests/test_maxcanon.py
@@ -38,7 +38,7 @@ XXX interpreters without any deterministic results.
self.echo = False
if sys.platform.lower().startswith('linux'):
# linux is 4096, N_TTY_BUF_SIZE.
- self.max_input = 4096 + 1
+ self.max_input = 4096
self.echo = True
elif sys.platform.lower().startswith('sunos'):
# SunOS allows PC_MAX_CANON + 1; see
@@ -76,8 +76,8 @@ XXX interpreters without any deterministic results.
child.expect_exact('\a')
# cleanup,
- child.sendeof() # exit cat(1)
- child.sendeof() # exit bash(1)
+ child.sendeof() # exit cat(1)
+ child.sendline('exit 0') # exit bash(1)
child.expect(pexpect.EOF)
assert not child.isalive()
assert child.exitstatus == 0
@@ -106,8 +106,8 @@ XXX interpreters without any deterministic results.
child.expect_exact('_', timeout=1)
# cleanup,
- child.sendeof() # exit cat(1)
- child.sendeof() # exit bash(1)
+ child.sendeof() # exit cat(1)
+ child.sendline('exit 0') # exit bash(1)
child.expect_exact(pexpect.EOF)
assert not child.isalive()
assert child.exitstatus == 0
@@ -135,7 +135,7 @@ XXX interpreters without any deterministic results.
child.expect_exact('_' * send_bytes)
# cleanup,
- child.sendcontrol('c') # exit cat(1) (eof wont work in -icanon)
+ child.sendcontrol('c') # exit cat(1) (eof wont work in -icanon)
child.sendline('exit 0') # exit bash(1)
child.expect(pexpect.EOF)
assert not child.isalive()