Nux

Merge lp:~hikiko/nux/nux.revert-retval into lp:nux

Proposed by Eleni Maria Stea on 2016-07-08
Status: Merged
Approved by: Marco Trevisan (Treviño) on 2016-07-11
Approved revision: 880
Merged at revision: 880
Proposed branch: lp:~hikiko/nux/nux.revert-retval
Merge into: lp:nux
Diff against target: 12 lines (+1/-1)
1 file modified
tools/unity_support_test.c (+1/-1)
To merge this branch: bzr merge lp:~hikiko/nux/nux.revert-retval
Reviewer Review Type Date Requested Status
Marco Trevisan (Treviño) 2016-07-08 Approve on 2016-07-11
PS Jenkins bot continuous-integration Pending
Unity Team 2016-07-08 Pending
Review via email: mp+299517@code.launchpad.net

Commit Message

unity_support_test: set back 2 return value on --help

Minor change on return value: since we only print info and we don't perform any tests retval is set back to 2 for consistency

Description of the Change

Minor change on return value: since we only print info and we don't perform any tests retval is set back to 2 for consistency

To post a comment you must log in.
Marco Trevisan (Treviño) (3v1n0) wrote :

OK

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tools/unity_support_test.c'
2--- tools/unity_support_test.c 2016-07-05 00:32:43 +0000
3+++ tools/unity_support_test.c 2016-07-08 09:00:24 +0000
4@@ -698,7 +698,7 @@
5 } else if ((strncmp (argv[i], "-h", 2) == 0) ||
6 (strncmp (argv[i], "--help", 6) == 0)) {
7 print_help ();
8- return 0;
9+ return 2;
10 } else {
11 fprintf (stderr, "Error: unknown command-line option `%s'\n\n", argv[i]);
12 print_help ();

Subscribers

People subscribed via source and target branches