Convert to wl_global_create/destroy()
diff --git a/tests/weston-test.c b/tests/weston-test.c
index 486cd6a..b625f42 100644
--- a/tests/weston-test.c
+++ b/tests/weston-test.c
@@ -240,8 +240,8 @@
test->compositor = ec;
weston_layer_init(&test->layer, &ec->cursor_layer.link);
- if (wl_display_add_global(ec->wl_display, &wl_test_interface,
- test, bind_test) == NULL)
+ if (wl_global_create(ec->wl_display, &wl_test_interface, 1,
+ test, bind_test) == NULL)
return -1;
loop = wl_display_get_event_loop(ec->wl_display);