~ted/upstart/starting-reversal

Viewing all changes in revision 1490.

  • Committer: James Hunt
  • Date: 2013-06-27 10:16:35 UTC
  • Revision ID: james.hunt@ubuntu.com-20130627101635-01cxkk1akmdzidrj
* lib/Makefile.am: Added dependency on libtest_util_common.
* lib/tests/test_libupstart.c: 
  - Use test_util_common.
  - test_libupstart():
    - Start a private D-Bus server and Session Init to handle possibility
      of building on systems not using Upstart as PID 1.
  - main(): Disable tests if required environment not available (as done
    for test_initctl).
* test/test_util_common.c:
  - wait_for_upstart(): Pass pid of session init to pass to
    set_upstart_session().
  - set_upstart_session(): Now accepts a session init pid to allow
    filtering of sessions and remove limitations of this function.
* test/test_util_common.h:
  - REEXEC_UPSTART(): Updated for changed wait_for_upstart() parameter.
* util/tests/test_initctl.c:
  - Moved in_chroot() and dbus_configured() to test_util_common.c.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: