tests: Use fixture in GIRepository tests

This deduplicates some code and will allow writing further tests more
easily.
This commit is contained in:
Philip Chimento
2024-01-21 10:08:17 -08:00
parent d41f05e9cf
commit b8a65edb01
5 changed files with 160 additions and 164 deletions

View File

@@ -58,7 +58,7 @@ foreach test_name, extra_args : girepository_tests
)
endif
exe = executable(test_name, source,
exe = executable(test_name, source, 'test-common.c',
c_args: test_cargs + extra_args.get('c_args', []),
cpp_args: test_cpp_args + extra_args.get('cpp_args', []),
link_args: extra_args.get('link_args', []),