From 65b7919ebfca2cb9d2352039a78e340cdc7667c2 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Wed, 25 Nov 2015 09:31:19 -0800 Subject: [PATCH] Don't run IP source address overwrite tests on OSX --- tests/src/ip.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/src/ip.cpp b/tests/src/ip.cpp index 2f82b4f..c31d3f5 100644 --- a/tests/src/ip.cpp +++ b/tests/src/ip.cpp @@ -737,6 +737,8 @@ void IPTest::test_overwrite_source_address(IP& ip) { EXPECT_EQ(output_buffer, buffer); } +// Only run these tests on non-osx nor freebsd +#if !(__FreeBSD__ || defined(__FreeBSD_kernel__) || __APPLE__) TEST_F(IPTest, OverwriteSourceAddress) { IP ip("8.8.8.8"); ip.src_addr("1.2.3.4"); @@ -756,5 +758,4 @@ TEST_F(IPTest, OverwriteSourceAddressConstructingFromBuffer) { IP ip(expected_output, sizeof(expected_output)); test_overwrite_source_address(ip); } - - +#endif