mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Fix gtest compilation issues on OSX.
This commit is contained in:
@@ -18,6 +18,8 @@ IF(MSVC)
|
||||
ADD_DEFINITIONS("-D_SCL_SECURE_NO_WARNINGS=1")
|
||||
ELSE()
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
|
||||
# Fix for Clang on OSX
|
||||
ADD_DEFINITIONS("-DGTEST_HAS_TR1_TUPLE=0")
|
||||
ENDIF()
|
||||
|
||||
# Build output checks
|
||||
|
||||
@@ -659,13 +659,6 @@ TEST_F(IPTest, ConstructorFromBuffer) {
|
||||
EXPECT_EQ(sec.transmission_control, 0x68656cU);
|
||||
}
|
||||
|
||||
TEST_F(IPTest, Serialize) {
|
||||
IP ip1(expected_packet, sizeof(expected_packet));
|
||||
PDU::serialization_type buffer = ip1.serialize();
|
||||
ASSERT_EQ(buffer.size(), sizeof(expected_packet));
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
TEST_F(IPTest, StackedProtocols) {
|
||||
IP ip = IP() / TCP();
|
||||
IP::serialization_type buffer = ip.serialize();
|
||||
|
||||
Reference in New Issue
Block a user