aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test-compositor.h
diff options
context:
space:
mode:
authorAlexandros Frantzis <alexandros.frantzis@collabora.com>2022-12-01 20:02:43 +0200
committerSimon Ser <contact@emersion.fr>2023-02-28 11:22:04 +0000
commitd4d322885349c73f8753cca0c6d7754d2b0b411e (patch)
treece6991bb2016f2d9af0c840a1c179a45098ce32d /tests/test-compositor.h
parentclient: Track the proxies attached to a queue (diff)
downloadwayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar.gz
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar.bz2
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar.lz
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar.xz
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.tar.zst
wayland-d4d322885349c73f8753cca0c6d7754d2b0b411e.zip
tests: Capture the test client log
Capture the test client log to a temporary fd, so that is accessible by both the test server process and the test client process. Signed-off-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
Diffstat (limited to 'tests/test-compositor.h')
-rw-r--r--tests/test-compositor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-compositor.h b/tests/test-compositor.h
index 7b350fe..b681b09 100644
--- a/tests/test-compositor.h
+++ b/tests/test-compositor.h
@@ -43,6 +43,7 @@ struct client_info {
struct wl_list link;
void *data; /* for arbitrary use */
+ int log_fd;
};
struct display {
@@ -106,6 +107,9 @@ void display_post_resume_events(struct display *d);
* it then reruns the display. */
void display_resume(struct display *d);
+/* The file descriptor containing the client log. This is only valid in the
+ * test client processes. */
+extern int client_log_fd;
struct client_info *client_create_with_name(struct display *d,
void (*client_main)(void *data),