mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
glib/tests/assert-msg-test.py: Skip the GDB test under sanitizers
This commit is contained in:
parent
aab0ff201b
commit
d22e96aa72
@ -143,6 +143,10 @@ class TestAssertMessage(unittest.TestCase):
|
|||||||
"""Test running g_assert() within gdb and fail the program."""
|
"""Test running g_assert() within gdb and fail the program."""
|
||||||
if self.__gdb is None:
|
if self.__gdb is None:
|
||||||
self.skipTest("GDB is not installed, skipping this test!")
|
self.skipTest("GDB is not installed, skipping this test!")
|
||||||
|
if {"thread", "address"} & set(
|
||||||
|
os.getenv("_GLIB_TEST_SANITIZERS", "").split(",")
|
||||||
|
):
|
||||||
|
self.skipTest("GDB can't run under sanitizers")
|
||||||
|
|
||||||
with tempfile.NamedTemporaryFile(
|
with tempfile.NamedTemporaryFile(
|
||||||
prefix="assert-msg-test-", suffix=".gdb", mode="w", delete=False
|
prefix="assert-msg-test-", suffix=".gdb", mode="w", delete=False
|
||||||
|
@ -489,6 +489,7 @@ python_tests = {
|
|||||||
'assert-msg-test.py' : {
|
'assert-msg-test.py' : {
|
||||||
'can_fail' : host_system == 'windows',
|
'can_fail' : host_system == 'windows',
|
||||||
'extra_programs': ['assert-msg-test'],
|
'extra_programs': ['assert-msg-test'],
|
||||||
|
'env': {'_GLIB_TEST_SANITIZERS': ','.join(glib_sanitizers)},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user