54 lines
2.3 KiB
Diff
54 lines
2.3 KiB
Diff
From 0b7fee3c974d89b7f7f51fef9a1893e25ed980da Mon Sep 17 00:00:00 2001
|
|
From: Jeff Quast <contact@jeffquast.com>
|
|
Date: Tue, 6 Oct 2015 08:08:05 -0700
|
|
Subject: [PATCH 1/2] disable max canon tests, retain file contents
|
|
|
|
---
|
|
tests/test_maxcanon.py | 9 ++++++---
|
|
1 file changed, 6 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/tests/test_maxcanon.py b/tests/test_maxcanon.py
|
|
index 772a3b7..cd48cbc 100644
|
|
--- a/tests/test_maxcanon.py
|
|
+++ b/tests/test_maxcanon.py
|
|
@@ -27,6 +27,9 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase):
|
|
implement this bit, and acts as if it is always set." Although these
|
|
tests ensure it is enabled, this is a non-op for Linux.
|
|
|
|
+ More unsettling in regards to Linux, Fedora and Debian have different
|
|
+ behaviours. For this reason, **these test has been disabled entirely**.
|
|
+
|
|
FreeBSD supports neither, and instead uses a fraction (1/5) of the tty
|
|
speed which is always 9600. Therefor, the maximum limited input line
|
|
length is 9600 / 5 = 1920.
|
|
@@ -63,7 +66,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase):
|
|
sys.platform.lower().startswith('freebsd'),
|
|
reason='os.write to BLOCK indefinitely on FreeBSD in this case'
|
|
)
|
|
- def test_under_max_canon(self):
|
|
+ def disabled_under_max_canon(self):
|
|
" BEL is not sent by terminal driver at maximum bytes - 1. "
|
|
# given,
|
|
child = pexpect.spawn('bash', echo=self.echo, timeout=5)
|
|
@@ -101,7 +104,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase):
|
|
sys.platform.lower().startswith('freebsd'),
|
|
reason='os.write to BLOCK indefinitely on FreeBSD in this case'
|
|
)
|
|
- def test_beyond_max_icanon(self):
|
|
+ def disabled_beyond_max_icanon(self):
|
|
" a single BEL is sent when maximum bytes is reached. "
|
|
# given,
|
|
child = pexpect.spawn('bash', echo=self.echo, timeout=5)
|
|
@@ -140,7 +143,7 @@ class TestCaseCanon(PexpectTestCase.PexpectTestCase):
|
|
sys.platform.lower().startswith('freebsd'),
|
|
reason='os.write to BLOCK indefinitely on FreeBSD in this case'
|
|
)
|
|
- def test_max_no_icanon(self):
|
|
+ def disabled_max_no_icanon(self):
|
|
" may exceed maximum input bytes if canonical mode is disabled. "
|
|
# given,
|
|
child = pexpect.spawn('bash', echo=self.echo, timeout=5)
|
|
--
|
|
2.6.1
|
|
|