summaryrefslogtreecommitdiffstats
path: root/0001-disable-max-canon-tests-retain-file-contents.patch
blob: 766f12f9c228dba28790c4ece2c5c16cbe106668 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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