Skip to content

Commit

Permalink
tox.ini: Temporarily disable Cython code coverage.
Browse files Browse the repository at this point in the history
If Cython/policyrep tracing is enabled, the C extension fails to compile
with this error:

In file included from /usr/include/python3.12/internal/pycore_frame.h:7,
                 from setools/policyrep.c:5500:
setools/policyrep.c: In function ‘__pyx_pf_7setools_9policyrep_23ConditionalExprIterator___next__’:
setools/policyrep.c:1259:44: error: expected identifier before ‘_Bool’
 1259 |       #define COND_EXPR_T_RENAME_BOOL_NAME bool
      |                                            ^~~~
setools/policyrep.c:28615:138: note: in expansion of macro ‘COND_EXPR_T_RENAME_BOOL_NAME’
28615 |     __pyx_t_3 = __pyx_f_7setools_9policyrep_13SELinuxPolicy_boolean_value_to_datum(__pyx_v_self->__pyx_base.policy, (__pyx_v_self->curr->COND_EXPR_T_RENAME_BOOL_NAME - 1)); if (unlikely(PyErr_Occurred())) __PYX_ERR(1, 336, __pyx_L1_error)
      |                                                                                                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: command '/usr/lib64/ccache/gcc' failed with exit code 1

Signed-off-by: Chris PeBenito <[email protected]>
  • Loading branch information
pebenito committed Feb 14, 2024
1 parent 267c402 commit f31507d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ commands_pre = pycodestyle --version
commands = pycodestyle setools/ setoolsgui/ tests/ tests-gui/ seinfo seinfoflow sedta sesearch sediff sechecker apol --statistics

[testenv:coverage]
setenv = SETOOLS_COVERAGE = 1
#setenv = SETOOLS_COVERAGE = 1
passenv = {[testenv]passenv}
deps = {[testenv]deps}
coverage>=6.0
Expand Down

0 comments on commit f31507d

Please sign in to comment.