~xnox/upstart/async-asserts

« back to all changes in this revision

Viewing changes to util/tests/test_initctl.c

  • Committer: James Hunt
  • Date: 2014-05-08 08:25:21 UTC
  • mfrom: (1615.2.1 trunk)
  • Revision ID: james.hunt@ubuntu.com-20140508082521-decpvc474o1esagl
* Merge of lp:~xnox/upstart/do-not-launch-session-dbus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17263
17263
        assert0 (unsetenv ("DBUS_SYSTEM_BUS_ADDRESS"));
17264
17264
        assert0 (unsetenv ("DBUS_SESSION_BUS_ADDRESS"));
17265
17265
 
17266
 
        START_UPSTART (upstart_pid, TRUE);
 
17266
        nih_local char  **extra = NULL;
 
17267
        extra = NIH_MUST (nih_str_array_new (NULL));
 
17268
        NIH_MUST (nih_str_array_add (&extra, NULL, NULL,"--no-startup-event"));
 
17269
        start_upstart_common (&(upstart_pid), TRUE, FALSE, NULL, NULL, extra);
17267
17270
 
17268
17271
        /* Pass the D-Bus session bus address to the Session Init */
17269
17272
        cmd = nih_sprintf (NULL, "%s notify-dbus-address \"%s\" 2>&1",
17333
17336
        assert0 (unsetenv ("DBUS_SYSTEM_BUS_ADDRESS"));
17334
17337
        assert0 (unsetenv ("DBUS_SESSION_BUS_ADDRESS"));
17335
17338
 
17336
 
        START_UPSTART (upstart_pid, TRUE);
 
17339
        start_upstart_common (&(upstart_pid), TRUE, FALSE, NULL, NULL, extra);
17337
17340
 
17338
17341
        /* Pass the first D-Bus session bus address to the Session Init */
17339
17342
        cmd = nih_sprintf (NULL, "%s notify-dbus-address \"%s\" 2>&1",