Merge branch 'meson-add-test-setup' into 'main'

build: Use add_test_setup() to allow tests to be run under valgrind

See merge request GNOME/glib!2752
This commit is contained in:
Philip Withnall
2022-06-20 11:09:55 +00:00
2 changed files with 25 additions and 2 deletions

View File

@@ -225,8 +225,7 @@ valgrind:
# See https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2710
- ulimit -Sn 1024
- bash -x ./.gitlab-ci/run-tests.sh
--wrap "valgrind --tool=memcheck --error-exitcode=1 --track-origins=yes --leak-check=full --leak-resolution=high --num-callers=50 --show-leak-kinds=definite,possible --show-error-list=yes --suppressions=${CI_PROJECT_DIR}/tools/glib.supp"
--no-suite no-valgrind
--setup valgrind
--no-suite slow
# FIXME: Remove this when we have zero valgrind leaks.
# https://gitlab.gnome.org/GNOME/glib/issues/333