Commit a5e72d10 authored by Christian Hergert's avatar Christian Hergert

build: make g_assert() work from tests

parent 6b8f695a
Pipeline #126678 passed with stages
in 3 minutes and 28 seconds
......@@ -26,6 +26,7 @@ foreach test: libpeas_gtk_tests_sources
test_exe = executable(
test_name,
test_sources,
c_args: ['-UG_DISABLE_ASSERT', '-UG_DISABLE_CAST_CHECKS'],
dependencies: libpeas_gtk_tests_deps
)
......
......@@ -6,7 +6,7 @@ libpeas_tests_sources = [
['plugin-info'],
]
libpeas_tests_c_args = []
libpeas_tests_c_args = ['-UG_DISABLE_ASSERT', '-UG_DISABLE_CAST_CHECKS']
if build_lua51_loader == true
libpeas_tests_sources += [['extension-lua', [lua51_dep]]]
......
......@@ -19,6 +19,8 @@ libtesting_util_c_args = [
'-DHAVE_CONFIG_H',
'-DBUILDDIR="@0@"'.format(builddir),
'-DSRCDIR="@0@"'.format(srcdir),
'-UG_DISABLE_ASSERT',
'-UG_DISABLE_CAST_CHECKS',
]
libtesting_util_link_args = [
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment