From fba2690b7b40d123ecc7271d041b1571358d177d Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Tue, 9 May 2017 14:22:06 +0200 Subject: [PATCH] lib-program-client: Made the test suite ignore the protocol version. --- src/lib-program-client/test-program-client-net.c | 2 +- src/lib-program-client/test-program-client-unix.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib-program-client/test-program-client-net.c b/src/lib-program-client/test-program-client-net.c index 893e4ee988..6471e67312 100644 --- a/src/lib-program-client/test-program-client-net.c +++ b/src/lib-program-client/test-program-client-net.c @@ -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 diff --git a/src/lib-program-client/test-program-client-unix.c b/src/lib-program-client/test-program-client-unix.c index 019e39228e..dd723a1fd5 100644 --- a/src/lib-program-client/test-program-client-unix.c +++ b/src/lib-program-client/test-program-client-unix.c @@ -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