tests: Add 'gdb' setup to run tests using gdb

When using --setup=gdb the tests will be running using gdb, however this
as per meson limitation allows only running a test when using verbose mode.
This commit is contained in:
Marco Trevisan (Treviño) 2019-11-26 18:45:31 +01:00
parent 222c33ec32
commit 53713c0098

View file

@ -44,3 +44,13 @@ if get_option('introspection')
)
endif
endif
gdb = find_program('gdb', required: false)
if gdb.found()
add_test_setup('gdb',
timeout_multiplier: 1000,
env: [
'LIBFPRINT_TEST_WRAPPER=@0@ --args'.format(
gdb.path())
])
endif