Commit fc149b80 authored by Rico Tzschichholz's avatar Rico Tzschichholz

move add_test_setup

parent 5fd55ee3
......@@ -146,6 +146,17 @@ if valadoc_enabled and cc.run('''#include <gvc.h>
add_project_arguments('-D', 'WITH_CGRAPH', language: 'vala')
endif
add_test_setup('default', is_default: true, env: 'G_SLICE=debug-blocks G_DEBUG=fatal-warnings')
vg = find_program('valgrind', required: false)
if (vg.found())
add_test_setup('valgrind',
env: 'G_SLICE=always-malloc G_DEBUG=fatal-warnings',
exe_wrapper: [vg, '--error-exitcode=1', '--leak-check=full', '--track-origins=yes'],
timeout_multiplier: 100,
)
endif
subdir('gobject-introspection')
subdir('gee')
subdir('vala')
......
......@@ -706,17 +706,6 @@ foreach flag : supported_test_cflags
vala_flags += ['-X', flag]
endforeach
add_test_setup('default', is_default: true, env: 'G_SLICE=debug-blocks G_DEBUG=fatal-warnings')
vg = find_program('valgrind', required: false)
if (vg.found())
add_test_setup('valgrind',
env: 'G_SLICE=always-malloc G_DEBUG=fatal-warnings',
exe_wrapper: [vg, '--error-exitcode=1', '--leak-check=full', '--track-origins=yes'],
timeout_multiplier: 10,
)
endif
preparetest = find_program('prepare-test.py')
foreach case : test_cases
......
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