Skip to content
Snippets Groups Projects
Commit 8030db87 authored by David Vasek's avatar David Vasek Committed by Daniel Salzman
Browse files

tests/requestor: repair broken test on FreeBSD

Both KNOT_ECONN and KNOT_ECONNREFUSED are acceptable on BSD's.

This fix compensates for a change introduced in the commit
83e07d92.
parent 01cda38a
No related branches found
No related tags found
No related merge requests found
Pipeline #67930 passed
......@@ -96,6 +96,8 @@ static void test_disconnected(knot_requestor_t *requestor,
{
knot_request_t *req = make_query(requestor, dst, src);
int ret = knot_requestor_exec(requestor, req, TIMEOUT);
/* ECONNREFUSED is OK too on FreeBSD. */
ret = (ret == KNOT_ECONNREFUSED) ? KNOT_ECONN : ret;
is_int(KNOT_ECONN, ret, "requestor: disconnected/exec");
knot_request_free(req, requestor->mm);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment