[mutter] test-utils: Expose helper for ensuring client path
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] test-utils: Expose helper for ensuring client path
- Date: Thu, 15 Jul 2021 12:40:52 +0000 (UTC)
commit bbf6d88d541455ba5c48275ef0a25a9ebd9911e2
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Tue Mar 2 10:37:27 2021 +0100
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>
src/tests/test-utils.c | 8 ++++----
src/tests/test-utils.h | 3 +++
2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/tests/test-utils.c b/src/tests/test-utils.c
index ca332a0b91..0f4c165103 100644
--- a/src/tests/test-utils.c
+++ b/src/tests/test-utils.c
@@ -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);
diff --git a/src/tests/test-utils.h b/src/tests/test-utils.h
index 1710b98e0e..06a8d085d8 100644
--- a/src/tests/test-utils.h
+++ b/src/tests/test-utils.h
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]