Fixed unit tests.

pull/6082/head
Teppo Järvelin 2018-03-01 09:27:36 +02:00 committed by Ari Parkkila
parent 63485bd846
commit 81738acfb4
4 changed files with 8 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public:
void test_AT_CellularNetwork_get_rate_control();
void test_AT_CellularNetwork_get_backoff_time();
void test_AT_CellularNetwork_get_apn_backoff_timer();
void test_AT_CellularNetwork_get_ip_address();

View File

@ -28,6 +28,6 @@ INCLUDE_DIRS =\
/usr/include\
$(CPPUTEST_HOME)/include\
CPPUTESTFLAGS = -D__thumb2__ -w -D__INLINE=__inline
CPPUTESTFLAGS = -D__thumb2__ -w -D__INLINE=__inline -DMBED_CONF_CELLULAR_MUX_ENABLED=1
CPPUTEST_CFLAGS += -std=gnu99

View File

@ -1,6 +1,6 @@
#!/bin/bash
echo
echo Build Connection helper unit tests
echo Build Cellular unit tests
echo
#replace by empty string if no branch coverage is needed
@ -10,7 +10,7 @@ branch_cov=""
branch_data="--no-branch-coverage"
# Remember to add new test folder to Makefile
make clean
make clean >/dev/null 2>&1
make all
echo

View File

@ -60,3 +60,7 @@ ssize_t Mux::user_data_rx(void* buffer, size_t size)
return cellular_mux_stub::size_value;
}
short Mux::poll()
{
return POLLIN | POLLOUT;
}