summaryrefslogtreecommitdiffstats
path: root/test/test_buffers.py
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2019-06-04 21:14:26 +0200
committerDamjan Marion <dmarion@me.com>2019-06-20 03:36:54 +0000
commitc09b7fd05104745a535a26794c0e680d7a6781c5 (patch)
treef7034c68433e2699d8b82e4257df1f9c235e4935 /test/test_buffers.py
parentd314963d0f1d12c45c55c7fd210f93c5cac3a8fc (diff)
buffers: fix crash
this change is being made to fix a crash when current_data < 0 in buffer linearization function Ticket: N/A Type: fix Fixes: f883f6a1132ad4bb7aa9d9a79d420274fbcf3b64 Change-Id: Ia4ede823f673780e0c30d075b091db42e183650d Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_buffers.py')
-rw-r--r--test/test_buffers.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/test_buffers.py b/test/test_buffers.py
new file mode 100644
index 00000000000..fe92378b484
--- /dev/null
+++ b/test/test_buffers.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python
+
+from framework import VppTestCase
+
+
+class TestBuffers(VppTestCase):
+ """ Buffer C Unit Tests """
+
+ @classmethod
+ def setUpClass(cls):
+ super(TestBuffers, cls).setUpClass()
+
+ @classmethod
+ def tearDownClass(cls):
+ super(TestBuffers, cls).tearDownClass()
+
+ def setUp(self):
+ super(TestBuffers, self).setUp()
+
+ def tearDown(self):
+ super(TestBuffers, self).tearDown()
+
+ def test_linearize(self):
+ """ Chained Buffer Linearization """
+ error = self.vapi.cli("test chained-buffer-linearization")
+
+ if error:
+ self.logger.critical(error)
+ self.assertNotIn('failed', error)