diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-08-09 17:45:40 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-08-10 14:25:12 +0100 |
commit | 0b74acedb5fcf3621c33da014cf944047499b9cf (patch) | |
tree | 89220c33e63ce4aa3e9ff52474b6dbfdc2fae46f /tests | |
parent | 637c54a0195baa1756c338131327e4d593578375 (diff) | |
download | dconf-0b74acedb5fcf3621c33da014cf944047499b9cf.tar.gz |
tests: Set G_DEBUG and other useful environment variables
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/meson.build | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/meson.build b/tests/meson.build index 6737a97..0ec6cbe 100644 --- a/tests/meson.build +++ b/tests/meson.build @@ -10,6 +10,11 @@ libdconf_mock = static_library( dependencies: glib_dep ) +envs = test_env + [ + 'G_TEST_SRCDIR=' + meson.current_source_dir(), + 'G_TEST_BUILDDIR=' + meson.current_build_dir(), +] + test_dir = meson.current_source_dir() dl_dep = cc.find_library('dl', required: false) @@ -36,5 +41,5 @@ foreach unit_test: unit_tests link_with: unit_test[4] ) - test(unit_test[0], exe, is_parallel: false) + test(unit_test[0], exe, is_parallel: false, env: envs) endforeach |