Skip to content

Commit 40fcdb7

Browse files
author
Antti Kauppila
committed
Unittest cleanup made
CellularDevice still had the old way of defining built time defines and is now removed. Other unittests needed some minor fixes after this.
1 parent 0c227a0 commit 40fcdb7

File tree

9 files changed

+9
-3
lines changed

9 files changed

+9
-3
lines changed

UNITTESTS/features/cellular/framework/AT/at_cellularcontext/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ set(unittest-test-flags
5050
-DDEVICE_INTERRUPTIN=1
5151
-DMBED_CONF_CELLULAR_USE_SMS=1
5252
-DMBED_CONF_NSAPI_DEFAULT_CELLULAR_APN=NULL
53+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
5354
)

UNITTESTS/features/cellular/framework/AT/at_cellularinformation/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,5 @@ set(unittest-test-sources
4040
set(unittest-test-flags
4141
-DDEVICE_SERIAL=1
4242
-DDEVICE_INTERRUPTIN=1
43+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
4344
)

UNITTESTS/features/cellular/framework/AT/at_cellularnetwork/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,5 @@ set(unittest-test-sources
4242
set(unittest-test-flags
4343
-DDEVICE_SERIAL=1
4444
-DDEVICE_INTERRUPTIN=1
45+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
4546
)

UNITTESTS/features/cellular/framework/AT/at_cellularsms/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,5 @@ set(unittest-test-flags
4444
-DMBED_CONF_CELLULAR_USE_SMS=1
4545
-DDEVICE_SERIAL=1
4646
-DDEVICE_INTERRUPTIN=1
47+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
4748
)

UNITTESTS/features/cellular/framework/AT/at_cellularstack/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@ set(unittest-test-sources
4949
set(unittest-test-flags
5050
-DDEVICE_SERIAL=1
5151
-DDEVICE_INTERRUPTIN=1
52+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
5253
)
5354

UNITTESTS/features/cellular/framework/AT/athandler/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ set(unittest-test-flags
4545
-DOS_STACK_SIZE=2048
4646
-DDEVICE_SERIAL=1
4747
-DDEVICE_INTERRUPTIN=1
48+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
4849
)

UNITTESTS/features/cellular/framework/device/cellulardevice/unittest.cmake

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,3 @@ set(unittest-test-flags
4949
-DDEVICE_INTERRUPTIN=1
5050
)
5151

52-
# defines
53-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
54-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMDMRTS=PTC0 -DMDMCTS=PTC1 -DMDMTXD=NC -DMDMRXD=NC -DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200 -DCELLULAR_DEVICE=myCellularDevice -DDEVICE_SERIAL_FC=1")

UNITTESTS/features/netsocket/cellular/CellularNonIPSocket/unittest.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ set(unittest-test-sources
2626
set(unittest-test-flags
2727
-DDEVICE_SERIAL=1
2828
-DDEVICE_INTERRUPTIN=1
29+
-DMBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE=115200
2930
)

UNITTESTS/stubs/UARTSerial_stub.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ int UARTSerial::enable_output(bool enabled)
130130
return 0;
131131
}
132132

133+
#if DEVICE_SERIAL_FC
133134
void UARTSerial::set_flow_control(mbed::SerialBase::Flow, PinName, PinName)
134135
{
135136

136137
}
138+
#endif
137139

138140
}

0 commit comments

Comments
 (0)