~jamesodhunt/upstart/upstart-shutdown-temp

Viewing all changes in revision 1424.

  • Committer: James Hunt
  • Date: 2013-01-28 15:10:22 UTC
  • Revision ID: james.hunt@ubuntu.com-20130128151022-87qbr6it214c44nr
* util/Makefile.am: Define INITCTL_BINARY and UPSTART_BINARY to ensure
  full path available to tests.
* util/tests/test_initctl.c:
  - New macros:
    - _TEST_STR_ARRAY_CONTAINS()
    - TEST_STR_ARRAY_CONTAINS()
    - TEST_STR_ARRAY_NOT_CONTAINS()
    - _TEST_FILE_CONTAINS()
    - TEST_FILE_CONTAINS()
    - TEST_FILE_NOT_CONTAINS()
  - get_initctl(): Function to replace original INITCTL_BINARY define.
  - test_global_and_local_job_env(): New function to test initctl
    '--global', '--job' and '--instance' options from within and without
    a job.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: