]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: Made the test suite ignore the protocol version.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 9 May 2017 12:22:06 +0000 (14:22 +0200)
committerGitLab <gitlab@git.dovecot.net>
Tue, 16 May 2017 15:19:30 +0000 (18:19 +0300)
src/lib-program-client/test-program-client-net.c
src/lib-program-client/test-program-client-unix.c

index 893e4ee988652311f1a2c600c60aa448a6b24475..6471e67312001aac7a7b9f5628f296e1e98cf132 100644 (file)
@@ -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
index 019e39228e0623dbb8062893cb3570b7baa24ecc..dd723a1fd59879898978b05fac936d6134da77c2 100644 (file)
@@ -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