lp://staging/~vorlon/upstart/stateful-reexec-dont-shape-code-to-impossible-tests
- Get this branch:
- bzr branch lp://staging/~vorlon/upstart/stateful-reexec-dont-shape-code-to-impossible-tests
Branch merges
- James Hunt: Pending requested
-
Diff: 187 lines (+23/-40)4 files modifiedinit/blocked.c (+0/-4)
init/job_class.c (+0/-8)
init/process.c (+0/-4)
init/tests/test_state.c (+23/-24)
Branch information
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. - 1472. By James Hunt
-
* Changelog: Summary of stateful re-exec feature.
* util/man/telinit.8: Removed warning about using 'telinit u'. - 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(). - 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://staging/upstart