Top | ![]() |
![]() |
![]() |
![]() |
void | gs_test_init () |
void | gs_test_flush_main_context () |
gchar * | gs_test_get_filename () |
void | gs_test_expose_icon_theme_paths () |
void | gs_test_reinitialise_plugin_loader () |
void gs_test_init (gint *pargc
,gchar ***pargv
);
Initializes the environment with the common settings for the test,
as a replacement for the g_test_init()
, which is called as well.
Since: 42
gchar * gs_test_get_filename (const gchar *testdatadir
,const gchar *filename
);
void
gs_test_expose_icon_theme_paths (void
);
Calculate and set the GS_SELF_TEST_ICON_THEME_PATH
environment variable
to include the current system icon theme paths. This is designed to be called
before calling
, which will clear the system icon theme paths.gs_test_init()
As this function calls
, it must not be called after threads have
been spawned.g_setenv()
Calling this function is an explicit acknowledgement that the code under test should be accessing the icon theme.
Since: 3.38
void gs_test_reinitialise_plugin_loader (GsPluginLoader *plugin_loader
,const gchar * const *allowlist
,const gchar * const *blocklist
);
Calls setup on each plugin. This should only be used from the self tests and in a controlled way.
Since: 42