~jamesodhunt/upstart/bug-1199778

Viewing all changes in revision 1513.

  • Committer: James Hunt
  • Date: 2013-07-17 14:18:42 UTC
  • Revision ID: james.hunt@ubuntu.com-20130717141842-i0ooykh5o05ihxu6
* init/tests/test_state.c:
  - test_session_serialise(): Added new test "Ensure session
    deserialisation does not create JobClasses" to assert
    new session deserialisation behaviour.
  - test_session_upgrade2(): Finished writing this test - it now creates
    a fake chroot path, updates the JSON so that all references to the
    chroot session refer to the temporary chroot path, creates 2 jobs
    and then performs the serialisation/deserialisation.
* init/tests/test_util.c:
  - ensure_env_clean():
    - Comments.
    - Added log_unflushed_files.
  - clean_env(): New function that re-initialises the common
    data structures.
* test/test_util_common.c: search_and_replace(): New function.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: