mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
6c6b5b9a48
commit
bbf6d88d54
@ -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);
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user