|
25 | 25 |
|
26 | 26 | using namespace utest::v1;
|
27 | 27 |
|
28 |
| -#define SIGNAL_SIGIO1 0x1 |
29 |
| -#define SIGNAL_SIGIO2 0x2 |
30 |
| -#define SIGIO_TIMEOUT 5000 //[ms] |
| 28 | +namespace |
| 29 | +{ |
| 30 | + static const int SIGNAL_SIGIO1 = 0x1; |
| 31 | + static const int SIGNAL_SIGIO2 = 0x2; |
| 32 | + static const int SIGIO_TIMEOUT = 5000; //[ms] |
31 | 33 |
|
32 |
| -Thread thread; |
33 |
| -static volatile bool running = true; |
| 34 | + Thread thread; |
| 35 | + volatile bool running = true; |
| 36 | +} |
34 | 37 |
|
35 | 38 | static void _sigio_handler1(osThreadId id) {
|
36 | 39 | osSignalSet(id, SIGNAL_SIGIO1);
|
@@ -84,7 +87,7 @@ static void check_const_len_rand_sequence()
|
84 | 87 | }
|
85 | 88 |
|
86 | 89 | if (bytes2process != 0) {
|
87 |
| - drop_bad_packets(sock); |
| 90 | + drop_bad_packets(sock, 0); |
88 | 91 | TEST_FAIL();
|
89 | 92 | }
|
90 | 93 | TEST_ASSERT_EQUAL(0, memcmp(tx_buff, rx_buff, BUFF_SIZE));
|
@@ -136,7 +139,7 @@ static void check_var_len_rand_sequence()
|
136 | 139 | }
|
137 | 140 |
|
138 | 141 | if (bytes2process != 0) {
|
139 |
| - drop_bad_packets(sock); |
| 142 | + drop_bad_packets(sock, 0); |
140 | 143 | TEST_FAIL();
|
141 | 144 | }
|
142 | 145 | TEST_ASSERT_EQUAL(0, memcmp(tx_buff, rx_buff, i));
|
|
0 commit comments