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:
parent
222c33ec32
commit
53713c0098
1 changed files with 10 additions and 0 deletions
|
@ -44,3 +44,13 @@ if get_option('introspection')
|
||||||
)
|
)
|
||||||
endif
|
endif
|
||||||
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
|
||||||
|
|
Loading…
Reference in a new issue