Skip to content

Commit

Permalink
lib-program-client: Made the test suite ignore the protocol version.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and GitLab committed May 16, 2017
1 parent db576e4 commit fba2690
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib-program-client/test-program-client-net.c
Expand Up @@ -108,7 +108,7 @@ int test_program_input_handle(struct test_client *client, const char *line)

switch(client->state) {
case CLIENT_STATE_INIT:
test_assert((cmp = strcmp(line, "VERSION\tscript\t3\t0")) == 0);
test_assert((cmp = strncmp(line, "VERSION\tscript\t", 15)) == 0);
if (cmp == 0) {
client->state = CLIENT_STATE_VERSION;
} else
Expand Down
2 changes: 1 addition & 1 deletion src/lib-program-client/test-program-client-unix.c
Expand Up @@ -89,7 +89,7 @@ int test_program_input_handle(struct test_client *client, const char *line)

switch(client->state) {
case CLIENT_STATE_INIT:
test_assert((cmp = strcmp(line, "VERSION\tscript\t3\t0")) == 0);
test_assert((cmp = strncmp(line, "VERSION\tscript\t", 15)) == 0);
if (cmp == 0) {
client->state = CLIENT_STATE_VERSION;
} else
Expand Down

0 comments on commit fba2690

Please sign in to comment.