mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +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."""
|
||||
if self.__gdb is None:
|
||||
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(
|
||||
prefix="assert-msg-test-", suffix=".gdb", mode="w", delete=False
|
||||
|
@ -489,6 +489,7 @@ python_tests = {
|
||||
'assert-msg-test.py' : {
|
||||
'can_fail' : host_system == 'windows',
|
||||
'extra_programs': ['assert-msg-test'],
|
||||
'env': {'_GLIB_TEST_SANITIZERS': ','.join(glib_sanitizers)},
|
||||
},
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user