From 4b9ad1b56ecc9c81aafe54331121435d3ca18fdb Mon Sep 17 00:00:00 2001 From: Michael Meffie Date: Tue, 12 Jul 2011 15:51:33 -0400 Subject: [PATCH] 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 --- tests/cmd/command-t.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/cmd/command-t.c b/tests/cmd/command-t.c index 2c9fae470..a4248c23d 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); -- 2.39.5