lp:~vorlon/upstart/stateful-reexec-dont-shape-code-to-impossible-tests

Created by Steve Langasek and last modified
Get this branch:
bzr branch lp:~vorlon/upstart/stateful-reexec-dont-shape-code-to-impossible-tests
Only Steve Langasek can upload to this branch. If you are Steve Langasek please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Steve Langasek
Project:
upstart
Status:
Development

Recent revisions

1475. By Steve Langasek

error handling was added to the str_to_enum() functions solely to satisfy
the tests, when the tests don't model a real-world invocation. Drop the
extra error handling, and instead add a check that *_str_to_enum() DTRT when
called with a non-NULL string that doesn't match an enum.

1474. By Steve Langasek

grammar nitpicking in code comments

1473. By James Hunt

Upstream sync.

1472. By James Hunt

* Changelog: Summary of stateful re-exec feature.
* util/man/telinit.8: Removed warning about using 'telinit u'.

1471. By James Hunt

Tidy up.

1470. By James Hunt

* init/tests/test_job_process.c:
  - New macro CHECK_FILE_EQ() to repeatedly check for expected file contents.
  - main(): Make parent wait for child in fork mode.
  - Converted appropriate TEST_FILE_EQ() calls to CHECK_FILE_EQ() to
    fix problem resulting from peculiar but permissible kernel behaviour
    (LP: #1066351).
* init/tests/test_util.h: New macros:
  - TEST_WATCH_UPDATE_TIMEOUT_SECS().
  - TEST_FORCE_WATCH_UPDATE_TIMEOUT_SECS().

1469. By James Hunt

tidy up

1468. By James Hunt

* init/job.c: job_serialise_all(): Typo.
* util/tests/test_initctl.c:
  - WAIT_FOR_UPSTART(): Fix nasty bug where session bus rather than the
    *test* session bus was being checked. Added extra check.
  - _START_UPSTART: Added extra check.
  - KILL_UPSTART: Added extra check.
  - job_to_pid(): Handle failure gracefully which makes function more
    useful for caller. Free regex.
  - test_reexec(): Improved test "single job producing output across a
    re-exec".

1467. By James Hunt

* util/tests/test_initctl.c:
  - START_UPSTART: Fix check for @confdir and @logdir.
  - CREATE_FILE: Treat @contents safely.
  - job_to_pid(): New function.
  - test_reexec(): New function with signle complex test:
    "single job producing output across a re-exec"

1466. By James Hunt

* init/Makefile.am: Rename TEST_UTIL to test_util_SOURCES to avoid
  issues with debuild.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:upstart
This branch contains Public information 
Everyone can see this information.

Subscribers