<div dir="ltr"><div><div>Hehe, race in sending patches (I will have to rebase my patches I just sent if this series will get merged before main :)<br></div>Anyway, for this and the previous patch:<br><br></div>Reviewed-by: Marek Chalupa <<a href="mailto:mchqwerty@gmail.com">mchqwerty@gmail.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 30, 2015 at 5:20 AM, Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
<br>
A more descriptive name to not be confused with create_client().<br>
<br>
Signed-off-by: Pekka Paalanen <<a href="mailto:pekka.paalanen@collabora.co.uk">pekka.paalanen@collabora.co.uk</a>><br>
---<br>
tests/bad-buffer-test.c | 2 +-<br>
tests/buffer-count-test.c | 2 +-<br>
tests/button-test.c | 2 +-<br>
tests/event-test.c | 22 +++++++++++-----------<br>
tests/keyboard-test.c | 2 +-<br>
tests/presentation-test.c | 2 +-<br>
tests/roles-test.c | 4 ++--<br>
tests/subsurface-test.c | 30 +++++++++++++++---------------<br>
tests/text-test.c | 2 +-<br>
tests/weston-test-client-helper.c | 2 +-<br>
tests/weston-test-client-helper.h | 2 +-<br>
11 files changed, 36 insertions(+), 36 deletions(-)<br>
<br>
diff --git a/tests/bad-buffer-test.c b/tests/bad-buffer-test.c<br>
index dc93b48..5175731 100644<br>
--- a/tests/bad-buffer-test.c<br>
+++ b/tests/bad-buffer-test.c<br>
@@ -64,7 +64,7 @@ TEST(test_truncated_shm_file)<br>
struct wl_surface *surface;<br>
int frame;<br>
<br>
- client = client_create(46, 76, 111, 134);<br>
+ client = create_client_and_test_surface(46, 76, 111, 134);<br>
assert(client);<br>
surface = client->surface->wl_surface;<br>
<br>
diff --git a/tests/buffer-count-test.c b/tests/buffer-count-test.c<br>
index 31d78c2..693cfc5 100644<br>
--- a/tests/buffer-count-test.c<br>
+++ b/tests/buffer-count-test.c<br>
@@ -124,7 +124,7 @@ TEST(test_buffer_count)<br>
uint32_t buffer_count;<br>
int i;<br>
<br>
- test_data.client = client_create(10, 10, 10, 10);<br>
+ test_data.client = create_client_and_test_surface(10, 10, 10, 10);<br>
if (!test_data.client->has_wl_drm)<br>
skip("compositor has not bound its display to EGL\n");<br>
<br>
diff --git a/tests/button-test.c b/tests/button-test.c<br>
index 7959fb7..de84190 100644<br>
--- a/tests/button-test.c<br>
+++ b/tests/button-test.c<br>
@@ -31,7 +31,7 @@ TEST(simple_button_test)<br>
struct client *client;<br>
struct pointer *pointer;<br>
<br>
- client = client_create(100, 100, 100, 100);<br>
+ client = create_client_and_test_surface(100, 100, 100, 100);<br>
assert(client);<br>
<br>
pointer = client->input->pointer;<br>
diff --git a/tests/event-test.c b/tests/event-test.c<br>
index 43540a5..6607668 100644<br>
--- a/tests/event-test.c<br>
+++ b/tests/event-test.c<br>
@@ -69,7 +69,7 @@ TEST(test_pointer_top_left)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(46, 76, 111, 134);<br>
+ client = create_client_and_test_surface(46, 76, 111, 134);<br>
assert(client);<br>
<br>
/* move pointer outside top left */<br>
@@ -94,7 +94,7 @@ TEST(test_pointer_bottom_left)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(99, 100, 100, 98);<br>
+ client = create_client_and_test_surface(99, 100, 100, 98);<br>
assert(client);<br>
<br>
/* move pointer outside bottom left */<br>
@@ -119,7 +119,7 @@ TEST(test_pointer_top_right)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(48, 100, 67, 100);<br>
+ client = create_client_and_test_surface(48, 100, 67, 100);<br>
assert(client);<br>
<br>
/* move pointer outside top right */<br>
@@ -144,7 +144,7 @@ TEST(test_pointer_bottom_right)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(100, 123, 100, 69);<br>
+ client = create_client_and_test_surface(100, 123, 100, 69);<br>
assert(client);<br>
<br>
/* move pointer outside bottom right */<br>
@@ -169,7 +169,7 @@ TEST(test_pointer_top_center)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(100, 201, 100, 50);<br>
+ client = create_client_and_test_surface(100, 201, 100, 50);<br>
assert(client);<br>
<br>
/* move pointer outside top center */<br>
@@ -194,7 +194,7 @@ TEST(test_pointer_bottom_center)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(100, 45, 67, 100);<br>
+ client = create_client_and_test_surface(100, 45, 67, 100);<br>
assert(client);<br>
<br>
/* move pointer outside bottom center */<br>
@@ -219,7 +219,7 @@ TEST(test_pointer_left_center)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(167, 45, 78, 100);<br>
+ client = create_client_and_test_surface(167, 45, 78, 100);<br>
assert(client);<br>
<br>
/* move pointer outside left center */<br>
@@ -244,7 +244,7 @@ TEST(test_pointer_right_center)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(110, 37, 100, 46);<br>
+ client = create_client_and_test_surface(110, 37, 100, 46);<br>
assert(client);<br>
<br>
/* move pointer outside right center */<br>
@@ -268,7 +268,7 @@ TEST(test_pointer_surface_move)<br>
{<br>
struct client *client;<br>
<br>
- client = client_create(100, 100, 100, 100);<br>
+ client = create_client_and_test_surface(100, 100, 100, 100);<br>
assert(client);<br>
<br>
/* move pointer outside of client */<br>
@@ -310,7 +310,7 @@ TEST(test_surface_output)<br>
struct client *client;<br>
int x, y;<br>
<br>
- client = client_create(100, 100, 100, 100);<br>
+ client = create_client_and_test_surface(100, 100, 100, 100);<br>
assert(client);<br>
<br>
assert(output_contains_client(client));<br>
@@ -375,7 +375,7 @@ TEST(buffer_release)<br>
int buf3_released = 0;<br>
int frame;<br>
<br>
- client = client_create(100, 100, 100, 100);<br>
+ client = create_client_and_test_surface(100, 100, 100, 100);<br>
assert(client);<br>
surface = client->surface->wl_surface;<br>
<br>
diff --git a/tests/keyboard-test.c b/tests/keyboard-test.c<br>
index 10ffc60..982a231 100644<br>
--- a/tests/keyboard-test.c<br>
+++ b/tests/keyboard-test.c<br>
@@ -32,7 +32,7 @@ TEST(simple_keyboard_test)<br>
uint32_t expect_key = 0;<br>
uint32_t expect_state = 0;<br>
<br>
- client = client_create(10, 10, 1, 1);<br>
+ client = create_client_and_test_surface(10, 10, 1, 1);<br>
assert(client);<br>
<br>
keyboard = client->input->keyboard;<br>
diff --git a/tests/presentation-test.c b/tests/presentation-test.c<br>
index 421eddc..ae17b84 100644<br>
--- a/tests/presentation-test.c<br>
+++ b/tests/presentation-test.c<br>
@@ -217,7 +217,7 @@ TEST(test_presentation_feedback_simple)<br>
struct client *client;<br>
struct feedback *fb;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
wl_surface_attach(client->surface->wl_surface,<br>
diff --git a/tests/roles-test.c b/tests/roles-test.c<br>
index c7d175b..09cc155 100644<br>
--- a/tests/roles-test.c<br>
+++ b/tests/roles-test.c<br>
@@ -91,7 +91,7 @@ TEST(test_role_conflict_sub_wlshell)<br>
struct wl_shell *shell;<br>
struct wl_shell_surface *shsurf;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
subco = get_subcompositor(client);<br>
@@ -119,7 +119,7 @@ TEST(test_role_conflict_wlshell_sub)<br>
struct wl_shell *shell;<br>
struct wl_shell_surface *shsurf;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
subco = get_subcompositor(client);<br>
diff --git a/tests/subsurface-test.c b/tests/subsurface-test.c<br>
index cf70017..cdf595d 100644<br>
--- a/tests/subsurface-test.c<br>
+++ b/tests/subsurface-test.c<br>
@@ -89,7 +89,7 @@ TEST(test_subsurface_basic_protocol)<br>
struct compound_surface com1;<br>
struct compound_surface com2;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com1, client);<br>
@@ -104,7 +104,7 @@ TEST(test_subsurface_position_protocol)<br>
struct compound_surface com;<br>
int i;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com, client);<br>
@@ -120,7 +120,7 @@ TEST(test_subsurface_placement_protocol)<br>
struct client *client;<br>
struct compound_surface com;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com, client);<br>
@@ -139,7 +139,7 @@ TEST(test_subsurface_paradox)<br>
struct wl_surface *parent;<br>
struct wl_subcompositor *subco;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
subco = get_subcompositor(client);<br>
@@ -157,7 +157,7 @@ TEST(test_subsurface_identical_link)<br>
struct client *client;<br>
struct compound_surface com;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com, client);<br>
@@ -175,7 +175,7 @@ TEST(test_subsurface_change_link)<br>
struct compound_surface com;<br>
struct wl_surface *stranger;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
stranger = wl_compositor_create_surface(client->wl_compositor);<br>
@@ -194,7 +194,7 @@ TEST(test_subsurface_nesting)<br>
struct compound_surface com;<br>
struct wl_surface *stranger;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
stranger = wl_compositor_create_surface(client->wl_compositor);<br>
@@ -212,7 +212,7 @@ TEST(test_subsurface_nesting_parent)<br>
struct compound_surface com;<br>
struct wl_surface *stranger;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
stranger = wl_compositor_create_surface(client->wl_compositor);<br>
@@ -230,7 +230,7 @@ TEST(test_subsurface_loop_paradox)<br>
struct wl_surface *surface[3];<br>
struct wl_subcompositor *subco;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
subco = get_subcompositor(client);<br>
@@ -253,7 +253,7 @@ TEST(test_subsurface_place_above_stranger)<br>
struct compound_surface com;<br>
struct wl_surface *stranger;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
stranger = wl_compositor_create_surface(client->wl_compositor);<br>
@@ -272,7 +272,7 @@ TEST(test_subsurface_place_below_stranger)<br>
struct compound_surface com;<br>
struct wl_surface *stranger;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
stranger = wl_compositor_create_surface(client->wl_compositor);<br>
@@ -291,7 +291,7 @@ TEST(test_subsurface_place_above_foreign)<br>
struct compound_surface com1;<br>
struct compound_surface com2;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com1, client);<br>
@@ -310,7 +310,7 @@ TEST(test_subsurface_place_below_foreign)<br>
struct compound_surface com1;<br>
struct compound_surface com2;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com1, client);<br>
@@ -328,7 +328,7 @@ TEST(test_subsurface_destroy_protocol)<br>
struct client *client;<br>
struct compound_surface com;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
populate_compound_surface(&com, client);<br>
@@ -527,7 +527,7 @@ TEST(test_subsurface_destroy_permutations)<br>
int counter = 0;<br>
int i;<br>
<br>
- client = client_create(100, 50, 123, 77);<br>
+ client = create_client_and_test_surface(100, 50, 123, 77);<br>
assert(client);<br>
<br>
permu_init(&per, test_size * 2 - 1);<br>
diff --git a/tests/text-test.c b/tests/text-test.c<br>
index 62adf81..1f6a4a2 100644<br>
--- a/tests/text-test.c<br>
+++ b/tests/text-test.c<br>
@@ -169,7 +169,7 @@ TEST(text_test)<br>
struct wl_text_input *text_input;<br>
struct text_input_state state;<br>
<br>
- client = client_create(100, 100, 100, 100);<br>
+ client = create_client_and_test_surface(100, 100, 100, 100);<br>
assert(client);<br>
<br>
factory = NULL;<br>
diff --git a/tests/weston-test-client-helper.c b/tests/weston-test-client-helper.c<br>
index 58ed250..c4b13d5 100644<br>
--- a/tests/weston-test-client-helper.c<br>
+++ b/tests/weston-test-client-helper.c<br>
@@ -595,7 +595,7 @@ create_client(void)<br>
}<br>
<br>
struct client *<br>
-client_create(int x, int y, int width, int height)<br>
+create_client_and_test_surface(int x, int y, int width, int height)<br>
{<br>
struct client *client;<br>
struct surface *surface;<br>
diff --git a/tests/weston-test-client-helper.h b/tests/weston-test-client-helper.h<br>
index 3ca8fd8..a058bfa 100644<br>
--- a/tests/weston-test-client-helper.h<br>
+++ b/tests/weston-test-client-helper.h<br>
@@ -118,7 +118,7 @@ struct client *<br>
create_client(void);<br>
<br>
struct client *<br>
-client_create(int x, int y, int width, int height);<br>
+create_client_and_test_surface(int x, int y, int width, int height);<br>
<br>
struct wl_buffer *<br>
create_shm_buffer(struct client *client, int width, int height, void **pixels);<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.0.5<br>
<br>
_______________________________________________<br>
wayland-devel mailing list<br>
<a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</font></span></blockquote></div><br></div>