Skip to content

Commit 81738ac

Browse files
Teppo JärvelinAri Parkkila
authored andcommitted
Fixed unit tests.
1 parent 63485bd commit 81738ac

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

features/cellular/UNITTESTS/at/at_cellularnetwork/test_at_cellularnetwork.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Test_AT_CellularNetwork
4444

4545
void test_AT_CellularNetwork_get_rate_control();
4646

47-
void test_AT_CellularNetwork_get_backoff_time();
47+
void test_AT_CellularNetwork_get_apn_backoff_timer();
4848

4949
void test_AT_CellularNetwork_get_ip_address();
5050

features/cellular/UNITTESTS/makefile_defines.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ INCLUDE_DIRS =\
2828
/usr/include\
2929
$(CPPUTEST_HOME)/include\
3030

31-
CPPUTESTFLAGS = -D__thumb2__ -w -D__INLINE=__inline
31+
CPPUTESTFLAGS = -D__thumb2__ -w -D__INLINE=__inline -DMBED_CONF_CELLULAR_MUX_ENABLED=1
3232
CPPUTEST_CFLAGS += -std=gnu99
3333

features/cellular/UNITTESTS/run_tests

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
echo
3-
echo Build Connection helper unit tests
3+
echo Build Cellular unit tests
44
echo
55

66
#replace by empty string if no branch coverage is needed
@@ -10,7 +10,7 @@ branch_cov=""
1010
branch_data="--no-branch-coverage"
1111

1212
# Remember to add new test folder to Makefile
13-
make clean
13+
make clean >/dev/null 2>&1
1414
make all
1515

1616
echo

features/cellular/UNITTESTS/stubs/cellular_mux_stub.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,7 @@ ssize_t Mux::user_data_rx(void* buffer, size_t size)
6060
return cellular_mux_stub::size_value;
6161
}
6262

63+
short Mux::poll()
64+
{
65+
return POLLIN | POLLOUT;
66+
}

0 commit comments

Comments
 (0)