]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-program-client: test-program-client-unix - Fix server-side argument count check.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 4 May 2021 00:12:21 +0000 (02:12 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 5 May 2021 18:26:46 +0000 (18:26 +0000)
src/lib-program-client/test-program-client-unix.c

index 17b8e6efff1905915e995091285ee1071a72efec..4bfbcab26caf254fa5079c2889e25af6f93e291e 100644 (file)
@@ -145,7 +145,7 @@ static void test_program_run(struct test_client *client)
        timeout_remove(&test_globals.to);
 
        args = array_get(&client->args, &count);
-       test_assert(count > 0);
+       test_assert(count >= 2);
        if (strcmp(args[0], "test_program_success") == 0) {
                /* Return hello world */
                test_assert(count >= 3);