Commit dcf3d71e authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête

agent: Agent can reach EOS after having received something

The agent can reach EOS after performing one or more non-empty reads in
its read loop, and then hitting EOS on the underlying stream. That means
reached_eos is TRUE, but n_valid_messages is non-zero.

Weaken the postcondition to reflect this.
parent 754596c8
......@@ -4057,7 +4057,7 @@ recv_error:
g_assert ((child_error != NULL) == (n_valid_messages == -1));
g_assert (n_valid_messages < 0 || (guint) n_valid_messages <= n_messages);
g_assert ((n_valid_messages == 0) == reached_eos);
g_assert (n_valid_messages != 0 || reached_eos);
if (child_error != NULL)
g_propagate_error (error, child_error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment