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

Viewing all changes in revision 1475.

  • Committer: Steve Langasek
  • Date: 2012-11-13 10:59:07 UTC
  • Revision ID: steve.langasek@canonical.com-20121113105907-u5fkrwvj9y8ufc8o
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.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: