diff options
author | Philip Withnall <withnall@endlessm.com> | 2019-03-05 10:55:19 +0000 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2019-03-08 19:46:20 +0000 |
commit | d89f18bb22ec73fb068a66f4a489a9bd749e6059 (patch) | |
tree | 00806939c0ed74f814537c826adc31df46aaf591 /tests | |
parent | f3610f14c4f5a96dc1e50a54e05208f72bdd6096 (diff) | |
download | glib-d89f18bb22ec73fb068a66f4a489a9bd749e6059.tar.gz |
build: Add -UG_DISABLE_ASSERT when building tests
In order to allow GLib itself to be built with G_DISABLE_ASSERT defined,
we need to explicitly undefine it when building the tests, otherwise
g_test_init() turns into an abort.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Fixes: #1708
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 11075dd8e..288c5b847 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -10,7 +10,7 @@ test_env.set('G_DEBUG', 'gc-friendly') test_env.set('MALLOC_CHECK_', '2') test_env.set('MALLOC_PERTURB_', '@0@'.format(random_number % 256)) -test_cargs = ['-DG_LOG_DOMAIN="GLib"'] +test_cargs = ['-DG_LOG_DOMAIN="GLib"', '-UG_DISABLE_ASSERT'] subdir('gobject') subdir('refcount') |