1
0
Fork 0

test-utils: Expose helper for ensuring client path

Will be used by the test context to reduce boiler plate.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
Jonas Ådahl 2021-03-02 10:37:27 +01:00
parent 6c6b5b9a48
commit bbf6d88d54
2 changed files with 7 additions and 4 deletions

View file

@ -58,9 +58,9 @@ G_DEFINE_QUARK (test-runner-error-quark, test_runner_error)
static char *test_client_path;
static void
ensure_test_client_path (int argc,
char **argv)
void
meta_ensure_test_client_path (int argc,
char **argv)
{
test_client_path = g_test_build_filename (G_TEST_BUILT,
"src",
@ -92,7 +92,7 @@ test_init (int *argc,
g_test_init (argc, argv, NULL);
g_test_bug_base ("http://bugzilla.gnome.org/show_bug.cgi?id=");
ensure_test_client_path (*argc, *argv);
meta_ensure_test_client_path (*argc, *argv);
meta_wayland_override_display_name ("mutter-test-display");
meta_xwayland_override_display_number (512);

View file

@ -86,4 +86,7 @@ const char * test_get_plugin_name (void);
void test_wait_for_x11_display (void);
void meta_ensure_test_client_path (int argc,
char **argv);
#endif /* TEST_UTILS_H */