Skip to content

Commit 8a2044b

Browse files
authored
Merge pull request #8763 from cmonr/rollup-b.1
Rollup PR: Retest CI-troubled PRs target for 5.11 v2
2 parents fa2077d + b327b12 commit 8a2044b

File tree

393 files changed

+9878
-7638
lines changed

Some content is hidden

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

393 files changed

+9878
-7638
lines changed

.astyleignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ hal/storage_abstraction
1616
TESTS/mbed_hal/trng/pithy
1717
features/nanostack/coap-service
1818
features/nanostack/sal-stack-nanostack
19+
features/nanostack/targets
1920
rtos/TARGET_CORTEX/rtx5
2021
TESTS/mbed_hal/trng/pithy
2122
targets

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,9 @@ matrix:
132132
- git diff --name-only $TRAVIS_BRANCH | grep '.*\.\(h\|c\|hpp\|cpp\)' | fgrep -v -f .astyleignore | xargs -n 100 -I {} bash -c "astyle -n --options=.astylerc \"{}\"" > astyle-files-changed.out;
133133
if [ $(cat astyle-files-changed.out | grep Formatted | wc -l) -ne 0 ]; then
134134
git --no-pager diff;
135-
echo "Please fix style issues as shown above";
135+
echo "";
136+
echo "AStyle check failed, please fix style issues as shown above";
137+
(exit 1);
136138
else
137139
echo "Coding style check OK";
138140
fi
@@ -155,7 +157,6 @@ matrix:
155157
STATUSM="$STATUSM ($(python -c "print '%+d' % ($CURR-$PREV)") files)"
156158
fi
157159
- bash -c "$STATUS" success "$STATUSM"
158-
159160
- env:
160161
- NAME=events
161162
- EVENTS=events

TESTS/mbed_hal/critical_section/critical_section_test.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616

1717
/** \addtogroup hal_critical
1818
* @{
19-
* \defgroup hal_critical_test Tests
19+
* \defgroup hal_critical_test Tests
2020
* Tests definitions of the HAL Critical module.
21-
* @{
21+
* @{
2222
*/
2323

2424
#ifndef MBED_CRITICAL_SECTION_TEST_H

TESTS/mbed_hal/qspi/qspi_test.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* @{
1919
* \defgroup hal_qspi_tests Tests
2020
* QSPI tests of the HAL.
21-
* @{
21+
* @{
2222
*/
2323
#ifndef MBED_QSPI_TEST_H
2424
#define MBED_QSPI_TEST_H

TESTS/mbed_hal/rtc_time/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ void test_set_time_twice()
183183
/* Set the time to NEW_TIME and check it */
184184
set_time(NEW_TIME);
185185
current_time = time(NULL);
186-
TEST_ASSERT_EQUAL (true, (current_time == NEW_TIME));
186+
TEST_ASSERT_EQUAL(true, (current_time == NEW_TIME));
187187

188188
/* Wait 2 seconds */
189189
wait_ms(2000);
190190

191191
/* set the time to NEW_TIME again and check it */
192192
set_time(NEW_TIME);
193193
current_time = time(NULL);
194-
TEST_ASSERT_EQUAL (true, (current_time == NEW_TIME));
194+
TEST_ASSERT_EQUAL(true, (current_time == NEW_TIME));
195195
}
196196

197197
Case cases[] = {

TESTS/mbed_hal/sleep/sleep_test_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* @{
2020
* @defgroup hal_sleep_test_util Tests
2121
* Tests of the sleep HAL.
22-
* @{
22+
* @{
2323
*/
2424

2525
#ifndef MBED_SLEEP_TEST_UTILS_H

UNITTESTS/features/lorawan/loramac/Test_LoRaMac.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,10 @@ void exp_cb()
215215
TEST_F(Test_LoRaMac, set_device_class)
216216
{
217217
object->set_device_class(CLASS_B, exp_cb);
218+
219+
my_phy phy;
220+
object->bind_phy(phy);
221+
object->set_device_class(CLASS_C, exp_cb);
218222
}
219223

220224
TEST_F(Test_LoRaMac, setup_link_check_request)

UNITTESTS/features/netsocket/InternetSocket/test_InternetSocket.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class stubInternetSocket : public InternetSocket {
2626
protected:
2727
nsapi_error_t return_value;
2828
public:
29-
stubInternetSocket() {
29+
stubInternetSocket()
30+
{
3031
return_value = 0;
3132
}
3233
virtual nsapi_error_t connect(const SocketAddress &address)

UNITTESTS/stubs/AT_CellularContext_stub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
using namespace mbed;
2121

2222
AT_CellularContext::AT_CellularContext(ATHandler &at, CellularDevice *device, const char *apn) :
23-
AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
24-
_current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
23+
AT_CellularBase(at), _ip_stack_type_requested(DEFAULT_STACK), _is_connected(false), _is_blocking(true),
24+
_current_op(OP_INVALID), _device(device), _nw(0), _fh(0)
2525
{
2626
_stack = NULL;
2727
_ip_stack_type = DEFAULT_STACK;
@@ -115,7 +115,7 @@ void AT_CellularContext::set_sim_pin(const char *sim_pin)
115115
}
116116

117117
nsapi_error_t AT_CellularContext::connect(const char *sim_pin, const char *apn, const char *uname,
118-
const char *pwd)
118+
const char *pwd)
119119
{
120120
return NSAPI_ERROR_OK;
121121
}
@@ -173,7 +173,7 @@ bool AT_CellularContext::set_new_context(int cid)
173173

174174
nsapi_error_t AT_CellularContext::do_activate_context()
175175
{
176-
return NSAPI_ERROR_OK;
176+
return NSAPI_ERROR_OK;
177177
}
178178

179179
void AT_CellularContext::do_connect()

UNITTESTS/stubs/CellularDevice_stub.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ MBED_WEAK CellularDevice *CellularDevice::get_default_instance()
2626
return NULL;
2727
}
2828

29-
CellularDevice::CellularDevice(FileHandle *fh) : _network_ref_count(0), _sms_ref_count(0),_power_ref_count(0), _sim_ref_count(0),
30-
_info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
29+
CellularDevice::CellularDevice(FileHandle *fh) : _network_ref_count(0), _sms_ref_count(0), _power_ref_count(0), _sim_ref_count(0),
30+
_info_ref_count(0), _fh(fh), _queue(5 * EVENTS_EVENT_SIZE), _state_machine(0), _nw(0)
3131
{
3232
}
3333

@@ -41,11 +41,11 @@ events::EventQueue *CellularDevice::get_queue()
4141
return NULL;
4242
}
4343

44-
void CellularDevice::set_plmn(char const*)
44+
void CellularDevice::set_plmn(char const *)
4545
{
4646
}
4747

48-
void CellularDevice::set_sim_pin(char const*)
48+
void CellularDevice::set_sim_pin(char const *)
4949
{
5050
}
5151

UNITTESTS/stubs/CellularStateMachine_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
namespace mbed {
2424

2525
CellularStateMachine::CellularStateMachine(CellularDevice &device, events::EventQueue &queue) :
26-
_cellularDevice(device), _queue(queue)
26+
_cellularDevice(device), _queue(queue)
2727
{
2828

2929
}

UNITTESTS/stubs/FileHandle_stub.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class FileHandle_stub : public FileHandle {
6565
return 0;
6666
}
6767

68-
virtual int close()
68+
virtual int close()
6969
{
7070
}
7171

UNITTESTS/stubs/NetworkStack_stub.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class NetworkStackstub : public NetworkStack {
2626
std::list<nsapi_error_t> return_values;
2727
nsapi_error_t return_value;
2828

29-
NetworkStackstub() {
29+
NetworkStackstub()
30+
{
3031
return_value = 0;
3132
}
3233

components/storage/blockdevice/COMPONENT_FLASHIAP/FlashIAPBlockDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class FlashIAPBlockDevice : public BlockDevice {
3636
*/
3737
FlashIAPBlockDevice(uint32_t address = MBED_CONF_FLASHIAP_BLOCK_DEVICE_BASE_ADDRESS,
3838
uint32_t size = MBED_CONF_FLASHIAP_BLOCK_DEVICE_SIZE);
39-
39+
4040
virtual ~FlashIAPBlockDevice();
4141

4242
/** Initialize a block device

0 commit comments

Comments
 (0)