tests: fix cmd test case
authorMichael Meffie <mmeffie@sinenomine.net>
Tue, 12 Jul 2011 19:51:33 +0000 (15:51 -0400)
committerDerrick Brashear <shadow@dementia.org>
Thu, 14 Jul 2011 02:59:26 +0000 (19:59 -0700)
Fix a build error in the cmd tap tests.

Change-Id: I757c5b508784fd938b70ca3829130275707dd39a
Reviewed-on: http://gerrit.openafs.org/4975
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: Derrick Brashear <shadow@dementia.org>

tests/cmd/command-t.c

index 2c9fae4..a4248c2 100644 (file)
@@ -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);