From: Michael Meffie Date: Tue, 12 Jul 2011 19:51:33 +0000 (-0400) Subject: tests: fix cmd test case X-Git-Tag: openafs-devel-1_7_1~279 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=4b9ad1b56ecc9c81aafe54331121435d3ca18fdb tests: fix cmd test case Fix a build error in the cmd tap tests. Change-Id: I757c5b508784fd938b70ca3829130275707dd39a Reviewed-on: http://gerrit.openafs.org/4975 Tested-by: BuildBot Reviewed-by: Simon Wilkinson Reviewed-by: Derrick Brashear --- diff --git a/tests/cmd/command-t.c b/tests/cmd/command-t.c index 2c9fae4..a4248c2 100644 --- a/tests/cmd/command-t.c +++ b/tests/cmd/command-t.c @@ -157,8 +157,8 @@ main(int argc, char **argv) /* Check that paramaters with abbreviation disabled don't make things * ambiguous */ - cmd_AddParmAtOffset(opts, "-sugar", CMD_SINGLE, CMD_OPTIONAL | CMD_NOABBRV, - "sugar with that", SUGAR_OFF); + cmd_AddParmAtOffset(opts, SUGAR_OFF, "-sugar", CMD_SINGLE, CMD_OPTIONAL | CMD_NOABBRV, + "sugar with that"); code = cmd_ParseLine("-fi foo -s bar -flag", tv, &tc, 100); is_int(0, code, "cmd_ParseLine succeeds"); code = cmd_Dispatch(tc, tv);