lp:~jamesodhunt/upstart/fix-job_find
- Get this branch:
- bzr branch lp:~jamesodhunt/upstart/fix-job_find
Branch merges
- Upstart Reviewers: Pending requested
-
Diff: 877 lines (+708/-20)6 files modifiedChangeLog (+24/-0)
init/control.c (+29/-13)
init/control.h (+6/-5)
init/job.c (+3/-0)
init/tests/test_control.c (+527/-2)
init/tests/test_job.c (+119/-0)
Branch information
Recent revisions
- 1573. By James Hunt
-
* init/control.c:
- control_set_env():
- Check permissions before anything else.
- Explicit check on @var rather than an assert.
- control_unset_env( ): Explicit check on @name rather than an assert.
- control_get_env(): Explicit check on @name.
- control_reset_env( ): Check permissions before anything else.
* init/control.h: control_get_job():
- Pass @job_name to job_find() rather than hard-coded NULL.
- Handle instance being NULL when raising NIH D-Bus error.
* init/job.c: job_find(): Handle NULL job_name.
* init/tests/test_control. c:
- Typo.
- New functions:
- test_list_env().
- test_list_env().
- test_get_env().
- test_set_env().
- test_unset_env().
- test_reset_env().
* init/tests/test_job. c: test_job_find(): New function. - 1566. By Dimitri John Ledkov
-
Introduce TAP output, mark failing tests as TODO, unset environment
variables that cause test suite failures.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:upstart