void-packages/srcpkgs/gnuradio/patches/skip-test-that-hangs-on-32b...

27 lines
906 B
Diff

Skip one test that hangs forever on 32 bit
See: https://github.com/gnuradio/gnuradio/issues/989
--- a/gr-fec/python/fec/qa_fecapi_ldpc.py 2019-08-09 18:15:36.000000000 -0300
+++ b/gr-fec/python/fec/qa_fecapi_ldpc.py 2021-12-28 12:56:31.635977173 -0300
@@ -98,6 +98,9 @@
self.assertEqual(data_in, data_out)
def test_parallelism0_03(self):
+ from ctypes import sizeof, c_long
+ if sizeof(c_long) <= 4:
+ return
filename = LDPC_ALIST_DIR + "n_0100_k_0058_gen_matrix.alist"
gap = 4
LDPC_matrix_object = fec.ldpc_G_matrix(filename)
@@ -115,6 +118,9 @@
self.assertEqual(data_in, data_out)
def test_parallelism0_03(self):
+ from ctypes import sizeof, c_long
+ if sizeof(c_long) <= 4:
+ return
filename = LDPC_ALIST_DIR + "n_0100_k_0058_gen_matrix.alist"
gap = 4
k = 100 - 58