]> 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)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Tue, 23 May 2017 11:36:05 +0000 (13:36 +0200)
src/lib-program-client/test-program-client-remote.c

index 5436bc84e4470ba935a95112ad6a57383e39bcce..9196c309e63d660ca61282dd14734ffc43f28578 100644 (file)
@@ -91,7 +91,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