~lightdm-team/lightdm/1.4

« back to all changes in this revision

Viewing changes to tests/src/test-session.c

  • Committer: Michael Terry
  • Date: 2012-09-28 14:55:35 UTC
  • mfrom: (1545.1.6 dep8)
  • Revision ID: michael.terry@canonical.com-20120928145535-s3xi911byrs0260e
fix various test suite race conditions

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
    r = g_strdup_printf ("SESSION %s LOCK-SEAT", getenv ("DISPLAY"));
45
45
    if (strcmp (request, r) == 0)
46
46
    {
 
47
        status_notify ("SESSION %s LOCK-SEAT", getenv ("DISPLAY"));
47
48
        g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL),
48
49
                                     "org.freedesktop.DisplayManager",
49
50
                                     getenv ("XDG_SEAT_PATH"),
55
56
                                     1000,
56
57
                                     NULL,
57
58
                                     NULL);
58
 
        status_notify ("SESSION %s LOCK-SEAT", getenv ("DISPLAY"));
59
59
    }
60
60
    g_free (r);
61
61
 
62
62
    r = g_strdup_printf ("SESSION %s LOCK-SESSION", getenv ("DISPLAY"));
63
63
    if (strcmp (request, r) == 0)
64
64
    {
 
65
        status_notify ("SESSION %s LOCK-SESSION", getenv ("DISPLAY"));
65
66
        g_dbus_connection_call_sync (g_bus_get_sync (G_BUS_TYPE_SYSTEM, NULL, NULL),
66
67
                                     "org.freedesktop.DisplayManager",
67
68
                                     getenv ("XDG_SESSION_PATH"),
73
74
                                     1000,
74
75
                                     NULL,
75
76
                                     NULL);
76
 
        status_notify ("SESSION %s LOCK-SESSION", getenv ("DISPLAY"));
77
77
    }
78
78
    g_free (r);
79
79