glib/girepository/tests
Philip Withnall 80f9153a7f girepository: Move search and library paths into GIRepository
Rather than them being set and stored globally, make them members of
`GIRepository`. This helps us move away from the concept of a global
singleton `GIRepository`.

This is slightly complicated by the fact that the library paths are
needed within the module loading code in `GITypelib`, but at that point
the `GITypelib` doesn’t have access to its parent `GIRepository` to call
`gi_repository_get_library_path()`, so we have to cache them in
`typelib->library_paths`.

It also means that it’s no longer possible to retrieve the ‘unset’ paths
from the globals, so the test for that is removed from
`repository-search-paths.c`.

This commit makes some API breaks, but that’s OK because libgirepository
has not been in a stable release yet.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3155
2024-01-26 12:08:17 +00:00
..
cmph-bdz.c cmph-bdz-test: Use more size_t 2024-01-16 18:56:57 +01:00
function-info.c tests: Use runtime casts 2024-01-23 22:04:52 -08:00
gthash.c tests: Use g_assert_*() rather than g_assert() in gthash tests 2024-01-18 13:15:22 +00:00
meson.build tests: Port over some GIRepository tests from g-i 1.x 2024-01-23 22:04:52 -08:00
repository-search-paths.c girepository: Move search and library paths into GIRepository 2024-01-26 12:08:17 +00:00
repository.c girepository: Move search and library paths into GIRepository 2024-01-26 12:08:17 +00:00
struct-info.c tests: Port over some GIRepository tests from g-i 1.x 2024-01-23 22:04:52 -08:00
test-common.c girepository: Move search and library paths into GIRepository 2024-01-26 12:08:17 +00:00
test-common.h tests: Port over some GIRepository tests from g-i 1.x 2024-01-23 22:04:52 -08:00
throws.c girepository: Remove GI_FUNCTION_THROWS and GI_VFUNC_THROWS flags 2024-01-24 20:45:28 -08:00