Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion test/test_advancedcpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,6 @@ def test24_typedef_to_private_class(self):

assert cppjit.gbl.TypedefToPrivateClass().f().m_val == 42

@mark.xfail(run=False, reason="Crashes")
def test25_ostream_printing(self):
"""Mapping of __str__ through operator<<(ostream&)"""

Expand Down
26 changes: 20 additions & 6 deletions test/test_boost.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from pytest import mark, raises, skip
from support import IS_MAC_ARM, IS_MAC_X86
from support import IS_MAC_ARM, IS_MAC_X86, IS_VALGRIND

# /usr/include and /usr/local/include are on the compiler's default search
# path; the Homebrew (arm64) and MacPorts prefixes are not, so a hit there
Expand Down Expand Up @@ -35,7 +35,10 @@ def setup_class(cls):
import cppjit

add_boost_include_path()
cppjit.include("boost/any.hpp")
try:
cppjit.include("boost/any.hpp")
except ImportError:
skip("boost headers not loadable")

@mark.skipif((IS_MAC_ARM or IS_MAC_X86), reason="Fails to include boost on OS X")
def test01_any_class(self):
Expand All @@ -50,7 +53,11 @@ def test01_any_class(self):

assert std.list[any]

@mark.xfail(run=False, reason="boost::any casting crashes")
@mark.xfail(
condition=IS_VALGRIND,
run=False,
reason="invalid reads in the JITed boost constructors under valgrind",
)
def test02_any_usage(self):
"""boost::any assignment and casting"""

Expand Down Expand Up @@ -122,10 +129,17 @@ def setup_class(cls):
import cppjit

add_boost_include_path()
cppjit.include("boost/variant/variant.hpp")
cppjit.include("boost/variant/get.hpp")
try:
cppjit.include("boost/variant/variant.hpp")
cppjit.include("boost/variant/get.hpp")
except ImportError:
skip("boost headers not loadable")

@mark.xfail(run=False, reason="boost::variant access crashes")
@mark.xfail(
condition=IS_VALGRIND,
run=False,
reason="invalid reads in the JITed boost constructors under valgrind",
)
def test01_variant_usage(self):
"""boost::variant usage"""

Expand Down
3 changes: 0 additions & 3 deletions test/test_concurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def setup_class(cls):

cppjit.gbl.Workers.calc.__release_gil__ = True

@mark.xfail(run=False, reason="Crashes")
def test01_simple_threads(self):
"""Run basic Python threads"""

Expand All @@ -35,7 +34,6 @@ def test01_simple_threads(self):
for t in threads:
t.join()

@mark.xfail(run=False, reason="Crashes")
def test02_futures(self):
"""Run with Python futures"""

Expand Down Expand Up @@ -266,7 +264,6 @@ def test():
for t in threads:
t.join()

@mark.xfail(run=False, reason="Crashes")
def test07_overload_reuse_in_threads_wo_gil(self):
"""Threads reuse overload objects; check for clashes if no GIL"""

Expand Down
2 changes: 1 addition & 1 deletion test/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ def test15_templated_arrays_gmpxx(self):
try:
cppjit.include("gmpxx.h")
cppjit.load_library("gmpxx")
except ImportError:
except (ImportError, RuntimeError):
skip("gmpxx not installed")

assert cppjit.gbl.std.vector[cppjit.gbl.mpz_class].value_type
Expand Down
5 changes: 0 additions & 5 deletions test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import py
from pytest import mark, raises, skip
from support import (
IS_CLANG_DEBUG,
IS_CLANG_REPL,
IS_CLING,
IS_LINUX_ARM,
Expand Down Expand Up @@ -1839,10 +1838,6 @@ def test01_string_through_string_view(self):
assert countit(v) == 4
assert countit_cr(v) == 4

@mark.xfail(
run=not (IS_CLANG_DEBUG or IS_CLING),
reason="Crashes on ClangRepl with 'toString not implemented', and on Cling",
)
def test02_string_view_from_unicode(self):
"""Life-time management of converted unicode strings"""

Expand Down
Loading