Skip to content

Commit 194fa12

Browse files
committed
Update recently added previous macro name uses in tests
1 parent 8cef190 commit 194fa12

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+74
-74
lines changed

TESTS/netsocket/tcp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
Timer tc_bucket; // Timer to limit a test cases run time
3838
}
3939

40-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
40+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4141
mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4242
#endif
4343

@@ -126,7 +126,7 @@ int split2half_rmng_tcp_test_time()
126126
return (tcp_global::TESTS_TIMEOUT - tc_bucket.read()) / 2;
127127
}
128128

129-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
129+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
130130
int fetch_stats()
131131
{
132132
return SocketStats::mbed_stats_socket_get_each(&tcp_stats[0], MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT);

TESTS/netsocket/tcp/tcp_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len);
2525
nsapi_error_t tcpsocket_connect_to_echo_srv(TCPSocket &sock);
2626
nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock);
2727

28-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
28+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
2929
extern mbed_stats_socket_t tcp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
3030
int fetch_stats(void);
3131
#endif

TESTS/netsocket/tcp/tcpsocket_bind_address.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -49,7 +49,7 @@ void TCPSOCKET_BIND_ADDRESS()
4949

5050
delete sock;
5151

52-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
52+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5353
count = fetch_stats();
5454
for (int j = 0; j < count; j++) {
5555
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_invalid.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_INVALID()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -55,7 +55,7 @@ void TCPSOCKET_BIND_ADDRESS_INVALID()
5555

5656
delete sock;
5757

58-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
58+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5959
count = fetch_stats();
6060
for (int j = 0; j < count; j++) {
6161
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_null.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_NULL()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_ADDRESS_NULL()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_address_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_ADDRESS_PORT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_ADDRESS_PORT()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_port.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_PORT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -48,7 +48,7 @@ void TCPSOCKET_BIND_PORT()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_port_fail.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_PORT_FAIL()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -58,7 +58,7 @@ void TCPSOCKET_BIND_PORT_FAIL()
5858
delete sock;
5959
delete sock2;
6060

61-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
61+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
6262
count = fetch_stats();
6363
for (int j = 0; j < count; j++) {
6464
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_unopened.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_UNOPENED()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -47,7 +47,7 @@ void TCPSOCKET_BIND_UNOPENED()
4747

4848
delete sock;
4949

50-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
50+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5151
count = fetch_stats();
5252
for (int j = 0; j < count; j++) {
5353
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_bind_wrong_type.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_BIND_WRONG_TYPE()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -57,7 +57,7 @@ void TCPSOCKET_BIND_WRONG_TYPE()
5757

5858
delete sock;
5959

60-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
60+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
6161
count = fetch_stats();
6262
for (int j = 0; j < count; j++) {
6363
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_echotest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void tcpsocket_echotest_nonblock_receive()
125125

126126
void TCPSOCKET_ECHOTEST_NONBLOCK()
127127
{
128-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
128+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
129129
int j = 0;
130130
int count = fetch_stats();
131131
for (; j < count; j++) {
@@ -179,7 +179,7 @@ void TCPSOCKET_ECHOTEST_NONBLOCK()
179179
}
180180
bytes2send -= sent;
181181
}
182-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
182+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
183183
count = fetch_stats();
184184
for (j = 0; j < count; j++) {
185185
if ((tcp_stats[j].state == SOCK_OPEN) && (tcp_stats[j].proto == NSAPI_TCP)) {

TESTS/netsocket/tcp/tcpsocket_open_close_repeat.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_OPEN_CLOSE_REPEAT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -42,7 +42,7 @@ void TCPSOCKET_OPEN_CLOSE_REPEAT()
4242
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->close());
4343
}
4444
delete sock;
45-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
45+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4646
count = fetch_stats();
4747
for (int j = 0; j < count; j++) {
4848
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_open_destruct.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_OPEN_DESTRUCT()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -41,7 +41,7 @@ void TCPSOCKET_OPEN_DESTRUCT()
4141
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
4242
delete sock;
4343
}
44-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
44+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4545
count = fetch_stats();
4646
for (int j = 0; j < count; j++) {
4747
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tcp/tcpsocket_open_limit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void TCPSOCKET_OPEN_LIMIT()
7070
break;
7171
}
7272

73-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
73+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
7474
int count = fetch_stats();
7575
int open_count = 0;
7676
for (int j = 0; j < count; j++) {

TESTS/netsocket/tcp/tcpsocket_open_twice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void TCPSOCKET_OPEN_TWICE()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);
@@ -41,7 +41,7 @@ void TCPSOCKET_OPEN_TWICE()
4141
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->open(NetworkInterface::get_default_instance()));
4242

4343
delete sock;
44-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
44+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4545
count = fetch_stats();
4646
for (int j = 0; j < count; j++) {
4747
TEST_ASSERT_EQUAL(SOCK_CLOSED, tcp_stats[j].state);

TESTS/netsocket/tls/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace {
3939
Timer tc_bucket; // Timer to limit a test cases run time
4040
}
4141

42-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
42+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4343
mbed_stats_socket_t tls_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4444
#endif
4545

@@ -154,7 +154,7 @@ int split2half_rmng_tls_test_time()
154154
return (tls_global::TESTS_TIMEOUT - tc_bucket.read()) / 2;
155155
}
156156

157-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
157+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
158158
int fetch_stats()
159159
{
160160
return SocketStats::mbed_stats_socket_get_each(&tls_stats[0], MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT);

TESTS/netsocket/tls/tls_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void fill_tx_buffer_ascii(char *buff, size_t len);
2828
nsapi_error_t tlssocket_connect_to_echo_srv(TLSSocket &sock);
2929
nsapi_error_t tlssocket_connect_to_discard_srv(TLSSocket &sock);
3030

31-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
31+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3232
extern mbed_stats_socket_t tls_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
3333
int fetch_stats(void);
3434
#endif

TESTS/netsocket/tls/tlssocket_echotest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void tlssocket_echotest_nonblock_receive()
131131

132132
void TLSSOCKET_ECHOTEST_NONBLOCK()
133133
{
134-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
134+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
135135
int j = 0;
136136
int count = fetch_stats();
137137
for (; j < count; j++) {
@@ -184,7 +184,7 @@ void TLSSOCKET_ECHOTEST_NONBLOCK()
184184
}
185185
bytes2send -= sent;
186186
}
187-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
187+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
188188
count = fetch_stats();
189189
for (j = 0; j < count; j++) {
190190
if ((tls_stats[j].state == SOCK_OPEN) && (tls_stats[j].proto == NSAPI_TLS)) {

TESTS/netsocket/tls/tlssocket_open_destruct.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace utest::v1;
2828

2929
void TLSSOCKET_OPEN_DESTRUCT()
3030
{
31-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
31+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3232
int count = fetch_stats();
3333
for (int j = 0; j < count; j++) {
3434
TEST_ASSERT_EQUAL(SOCK_CLOSED, tls_stats[j].state);
@@ -43,7 +43,7 @@ void TLSSOCKET_OPEN_DESTRUCT()
4343
TEST_ASSERT_EQUAL(NSAPI_ERROR_OK, sock->open(NetworkInterface::get_default_instance()));
4444
delete sock;
4545
}
46-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
46+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4747
count = fetch_stats();
4848
for (int j = 0; j < count; j++) {
4949
TEST_ASSERT_EQUAL(SOCK_CLOSED, tls_stats[j].state);

TESTS/netsocket/tls/tlssocket_open_limit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void TLSSOCKET_OPEN_LIMIT()
7272
break;
7373
}
7474

75-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
75+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
7676
int count = fetch_stats();
7777
int open_count = 0;
7878
for (int j = 0; j < count; j++) {

TESTS/netsocket/tls/tlssocket_open_twice.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace utest::v1;
2828

2929
void TLSSOCKET_OPEN_TWICE()
3030
{
31-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
31+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3232
int count = fetch_stats();
3333
for (int j = 0; j < count; j++) {
3434
TEST_ASSERT_EQUAL(SOCK_CLOSED, tls_stats[j].state);
@@ -43,7 +43,7 @@ void TLSSOCKET_OPEN_TWICE()
4343
TEST_ASSERT_EQUAL(NSAPI_ERROR_PARAMETER, sock->open(NetworkInterface::get_default_instance()));
4444

4545
delete sock;
46-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
46+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4747
count = fetch_stats();
4848
for (int j = 0; j < count; j++) {
4949
TEST_ASSERT_EQUAL(SOCK_CLOSED, tls_stats[j].state);

TESTS/netsocket/udp/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace {
3737
Timer tc_bucket; // Timer to limit a test cases run time
3838
}
3939

40-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
40+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
4141
mbed_stats_socket_t udp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
4242
#endif
4343

@@ -89,7 +89,7 @@ int split2half_rmng_udp_test_time()
8989
return (udp_global::TESTS_TIMEOUT - tc_bucket.read()) / 2;
9090
}
9191

92-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
92+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
9393
int fetch_stats()
9494
{
9595
return SocketStats::mbed_stats_socket_get_each(&udp_stats[0], MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT);

TESTS/netsocket/udp/udp_tests.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void drop_bad_packets(UDPSocket &sock, int orig_timeout);
2323
nsapi_version_t get_ip_version();
2424
void fill_tx_buffer_ascii(char *buff, size_t len);
2525

26-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
26+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
2727
extern mbed_stats_socket_t udp_stats[MBED_CONF_NSAPI_SOCKET_STATS_MAX_COUNT];
2828
int fetch_stats(void);
2929
#endif

TESTS/netsocket/udp/udpsocket_bind_address.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ using namespace utest::v1;
2626

2727
void UDPSOCKET_BIND_ADDRESS()
2828
{
29-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
29+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
3030
int count = fetch_stats();
3131
for (int j = 0; j < count; j++) {
3232
TEST_ASSERT_EQUAL(SOCK_CLOSED, udp_stats[j].state);
@@ -48,7 +48,7 @@ void UDPSOCKET_BIND_ADDRESS()
4848

4949
delete sock;
5050

51-
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLE
51+
#if MBED_CONF_NSAPI_SOCKET_STATS_ENABLED
5252
count = fetch_stats();
5353
for (int j = 0; j < count; j++) {
5454
TEST_ASSERT_EQUAL(SOCK_CLOSED, udp_stats[j].state);

0 commit comments

Comments
 (0)