mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-07-21 10:44:25 +00:00
tests: remove static data from ivi-shell-app-test
Just one test call this only once, so the cached value will never be useful. Stop using static data, it sets a bad example. If more tests were added, things would start failing when forking is removed from the test harness. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.com>
This commit is contained in:
parent
d19c55c75e
commit
9551dd7827
|
@ -36,10 +36,7 @@ get_ivi_application(struct client *client)
|
||||||
{
|
{
|
||||||
struct global *g;
|
struct global *g;
|
||||||
struct global *global_iviapp = NULL;
|
struct global *global_iviapp = NULL;
|
||||||
static struct ivi_application *iviapp;
|
struct ivi_application *iviapp;
|
||||||
|
|
||||||
if (iviapp)
|
|
||||||
return iviapp;
|
|
||||||
|
|
||||||
wl_list_for_each(g, &client->global_list, link) {
|
wl_list_for_each(g, &client->global_list, link) {
|
||||||
if (strcmp(g->interface, "ivi_application"))
|
if (strcmp(g->interface, "ivi_application"))
|
||||||
|
|
Loading…
Reference in a new issue