Skip to content

Commit

Permalink
Merge pull request syslog-ng#5092 from HofiOne/missing-ipv6-off-test-…
Browse files Browse the repository at this point in the history
…correction

test: added a missing fix for test if IPV6 support is disabled
  • Loading branch information
HofiOne authored Sep 11, 2024
2 parents d67de1b + c8fc70e commit 7a2d2d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/template/tests/test_macro.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ Test(macro, test_ipv4_saddr_related_macros)
log_msg_unref(msg);
}

#if SYSLOG_NG_ENABLE_IPV6
Test(macro, test_ipv6_saddr_related_macros)
{
LogMessage *msg = log_msg_new_empty();
Expand All @@ -167,6 +168,7 @@ Test(macro, test_ipv6_mapped_ipv4_saddr_related_macros)
assert_macro_value(M_IP_PROTOCOL, msg, "4", LM_VT_INTEGER);
log_msg_unref(msg);
}
#endif

void
setup(void)
Expand Down

0 comments on commit 7a2d2d7

Please sign in to comment.