Skip to content

Commit

Permalink
Merge upstream, address conflict in src/utils/cmds/cmds_test.c
Browse files Browse the repository at this point in the history
  • Loading branch information
zebity committed Jul 12, 2019
1 parent a1bba58 commit a72ad42
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/utils/cmds/cmds_test.c
Expand Up @@ -196,13 +196,14 @@ DEF_TEST(parse) {
memset(&cmd, 0, sizeof(cmd));

status = cmd_parse(input, &cmd, parse_data[i].opts, &err);
ssnprintf(description, sizeof(description), "cmd_parse (\"%s\", opts=%p) = "
"%d (type=%d [%s]); want %d "
"(type=%d [%s])",
parse_data[i].input, parse_data[i].opts, status, cmd.type,
CMD_TO_STRING(cmd.type), parse_data[i].expected_status,
parse_data[i].expected_type,
CMD_TO_STRING(parse_data[i].expected_type));
ssnprintf(description, sizeof(description),
"cmd_parse (\"%s\", opts=%p) = "
"%d (type=%d [%s]); want %d "
"(type=%d [%s])",
parse_data[i].input, parse_data[i].opts, status, cmd.type,
CMD_TO_STRING(cmd.type), parse_data[i].expected_status,
parse_data[i].expected_type,
CMD_TO_STRING(parse_data[i].expected_type));
result = (status == parse_data[i].expected_status) &&
(cmd.type == parse_data[i].expected_type);
LOG(result, description);
Expand Down

0 comments on commit a72ad42

Please sign in to comment.