Skip to content

Commit 7c6f1c3

Browse files
author
Seppo Takalo
committed
Fix SocketAddress unittests
Add ip4tos() and stoip4() into unittests. NOTE: Probably should have been stubbed but this way we can also test these helper functions.
1 parent 920db63 commit 7c6f1c3

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

UNITTESTS/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ set(unittest-includes-base
100100
"${PROJECT_SOURCE_DIR}/../rtos/TARGET_CORTEX"
101101
"${PROJECT_SOURCE_DIR}/../rtos/TARGET_CORTEX/rtx5/Include"
102102
"${PROJECT_SOURCE_DIR}/../cmsis"
103+
"${PROJECT_SOURCE_DIR}/../features/frameworks/nanostack-libservice/mbed-client-libservice/"
103104
)
104105

105106
# Create a list for test suites.

UNITTESTS/features/netsocket/InternetSocket/unittest.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ set(unittest-sources
1010
../features/netsocket/SocketAddress.cpp
1111
../features/netsocket/NetworkStack.cpp
1212
../features/netsocket/InternetSocket.cpp
13+
../features/frameworks/nanostack-libservice/source/libip4string/ip4tos.c
14+
../features/frameworks/nanostack-libservice/source/libip4string/stoip4.c
1315
)
1416

1517
set(unittest-test-sources

UNITTESTS/features/netsocket/TCPSocket/unittest.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ set(unittest-sources
1010
../features/netsocket/SocketAddress.cpp
1111
../features/netsocket/InternetSocket.cpp
1212
../features/netsocket/TCPSocket.cpp
13+
../features/frameworks/nanostack-libservice/source/libip4string/ip4tos.c
14+
../features/frameworks/nanostack-libservice/source/libip4string/stoip4.c
1315
)
1416

1517
set(unittest-test-sources

UNITTESTS/features/netsocket/UDPSocket/unittest.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ set(unittest-sources
1111
../features/netsocket/NetworkStack.cpp
1212
../features/netsocket/InternetSocket.cpp
1313
../features/netsocket/UDPSocket.cpp
14+
../features/frameworks/nanostack-libservice/source/libip4string/ip4tos.c
15+
../features/frameworks/nanostack-libservice/source/libip4string/stoip4.c
1416
)
1517

1618
set(unittest-test-sources

0 commit comments

Comments
 (0)