6932a65a55
Also fix do_check() step: - add python3-scipy to checkdepends, required by some tests - add three patches from upstream that fix some other tests - add a patch to (conditionally) skip a test that hangs on 32 bit Note: on i686 2 tests fail (qa_ctcss_squelch, qa_constellation)
46 lines
1.5 KiB
Diff
46 lines
1.5 KiB
Diff
From 596c6495f3bdf579dae0c26531a16f6adcc7fb2f Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Marcus=20M=C3=BCller?= <mmueller@gnuradio.org>
|
|
Date: Mon, 13 Apr 2020 00:11:59 +0200
|
|
Subject: [PATCH] =?UTF-8?q?pmt:=20conditionalize=20testing=20of=20long=20>?=
|
|
=?UTF-8?q?=202=C2=B3=C2=B2=20on=20sizeof(long)?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
gnuradio-runtime/python/pmt/qa_pmt.py | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
diff --git a/gnuradio-runtime/python/pmt/qa_pmt.py b/gnuradio-runtime/python/pmt/qa_pmt.py
|
|
index 884bba7dd4b..44f616cdae1 100644
|
|
--- a/gnuradio-runtime/python/pmt/qa_pmt.py
|
|
+++ b/gnuradio-runtime/python/pmt/qa_pmt.py
|
|
@@ -18,6 +18,10 @@ class test_pmt(unittest.TestCase):
|
|
MAXINT32 = (2**31)-1
|
|
MININT32 = (-MAXINT32)-1
|
|
|
|
+ def setUp(self):
|
|
+ from ctypes import sizeof, c_long
|
|
+ self.sizeof_long = sizeof(c_long)
|
|
+
|
|
def test01(self):
|
|
a = pmt.intern("a")
|
|
b = pmt.from_double(123765)
|
|
@@ -112,6 +116,8 @@ def test14(self):
|
|
self.assertEqual(const,pmt.to_long(deser))
|
|
|
|
def test15(self):
|
|
+ if(self.sizeof_long <= 4):
|
|
+ return
|
|
const = self.MAXINT32 + 1
|
|
x_pmt = pmt.from_long(const)
|
|
s = pmt.serialize_str(x_pmt)
|
|
@@ -137,6 +143,8 @@ def test17(self):
|
|
self.assertEqual(const, x_long)
|
|
|
|
def test18(self):
|
|
+ if(self.sizeof_long <= 4):
|
|
+ return
|
|
const = self.MININT32 - 1
|
|
x_pmt = pmt.from_long(const)
|
|
s = pmt.serialize_str(x_pmt)
|