Somehow the equivalent test-program-client-net code does not have this problem.
And somehow this test did not fail before.
static int
test_program_input_handle(struct test_client *client, const char *line)
{
- int cmp;
+ int cmp = -1;
const char *arg;
switch(client->state) {
return -1;
break;
case CLIENT_STATE_VERSION:
- test_assert((cmp = strcmp(line, "-")) == 0);
+ if (strcmp(line, "noreply") == 0 ||
+ strcmp(line, "-") == 0)
+ cmp = 0;
+ test_assert(cmp == 0);
if (cmp == 0)
client->state = CLIENT_STATE_ARGS;
else