Fix more astyle failures

pull/11023/head
Donatien Garnier 2018-11-19 18:36:54 +00:00 committed by Martin Kojtal
parent fd7e46b799
commit ec010fc5e6
5 changed files with 14 additions and 14 deletions

View File

@ -109,14 +109,14 @@ void test_restart()
TEST_ASSERT_UINT32_WITHIN(WORST_TIMEOUT_RESOLUTION_MS, watchdog.max_timeout(), watchdog.reload_value());
}
utest::v1::status_t case_setup_sync_on_reset(const Case * const source, const size_t index_of_case)
utest::v1::status_t case_setup_sync_on_reset(const Case *const source, const size_t index_of_case)
{
CASE_INDEX_CURRENT = index_of_case;
return utest::v1::greentea_case_setup_handler(source, index_of_case);
}
utest::v1::status_t case_teardown_sync_on_reset(const Case * const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
utest::v1::status_t case_teardown_sync_on_reset(const Case *const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
{
utest::v1::status_t status = utest::v1::greentea_case_teardown_handler(source, passed, failed, failure);
if (failed) {

View File

@ -56,7 +56,7 @@ void release_sem(Semaphore *sem)
testcase_data current_case;
bool send_reset_notification(testcase_data * tcdata, uint32_t delay_ms)
bool send_reset_notification(testcase_data *tcdata, uint32_t delay_ms)
{
char msg_value[12];
int str_len = snprintf(msg_value, sizeof msg_value, "%02x,%08lx", tcdata->start_index + tcdata->index, delay_ms);
@ -229,7 +229,7 @@ void test_kick_reset()
TEST_ASSERT_MESSAGE(0, "Watchdog did not reset the device as expected.");
}
utest::v1::status_t case_setup(const Case * const source, const size_t index_of_case)
utest::v1::status_t case_setup(const Case *const source, const size_t index_of_case)
{
current_case.index = index_of_case;
return utest::v1::greentea_case_setup_handler(source, index_of_case);

View File

@ -125,14 +125,14 @@ void test_update_config()
TEST_ASSERT_UINT32_WITHIN(WORST_TIMEOUT_RESOLUTION_MS, config.timeout_ms, hal_watchdog_get_reload_value());
}
utest::v1::status_t case_setup_sync_on_reset(const Case * const source, const size_t index_of_case)
utest::v1::status_t case_setup_sync_on_reset(const Case *const source, const size_t index_of_case)
{
CASE_INDEX_CURRENT = index_of_case;
return utest::v1::greentea_case_setup_handler(source, index_of_case);
}
utest::v1::status_t case_teardown_sync_on_reset(const Case * const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
utest::v1::status_t case_teardown_sync_on_reset(const Case *const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
{
utest::v1::status_t status = utest::v1::greentea_case_teardown_handler(source, passed, failed, failure);
if (failed) {
@ -153,8 +153,8 @@ utest::v1::status_t case_teardown_sync_on_reset(const Case * const source, const
return status; // Reset is instant so this line won't be reached.
}
utest::v1::status_t case_teardown_wdg_stop_or_reset(const Case * const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
utest::v1::status_t case_teardown_wdg_stop_or_reset(const Case *const source, const size_t passed, const size_t failed,
const utest::v1::failure_t failure)
{
watchdog_features_t features = hal_watchdog_get_platform_features();
if (features.disable_watchdog) {

View File

@ -78,7 +78,7 @@ void release_sem(Semaphore *sem)
testcase_data current_case;
bool send_reset_notification(testcase_data * tcdata, uint32_t delay_ms)
bool send_reset_notification(testcase_data *tcdata, uint32_t delay_ms)
{
char msg_value[12];
int str_len = snprintf(msg_value, sizeof msg_value, "%02x,%08lx", tcdata->start_index + tcdata->index, delay_ms);
@ -252,7 +252,7 @@ void test_kick_reset()
TEST_ASSERT_MESSAGE(0, "Watchdog did not reset the device as expected.");
}
utest::v1::status_t case_setup(const Case * const source, const size_t index_of_case)
utest::v1::status_t case_setup(const Case *const source, const size_t index_of_case)
{
current_case.index = index_of_case;
return utest::v1::greentea_case_setup_handler(source, index_of_case);

View File

@ -60,7 +60,7 @@ void test_timing()
// Phase 1. -- run the test code.
// Send heartbeat messages to host until the watchdeg resets the device.
const ticker_data_t * const us_ticker = get_us_ticker_data();
const ticker_data_t *const us_ticker = get_us_ticker_data();
us_timestamp_t current_ts, next_ts, expected_reset_ts, divider, ts_increment;
char msg_value[12];
@ -98,7 +98,7 @@ void test_timing()
}
}
utest::v1::status_t case_setup(const Case * const source, const size_t index_of_case)
utest::v1::status_t case_setup(const Case *const source, const size_t index_of_case)
{
current_case.index = index_of_case;
return utest::v1::greentea_case_setup_handler(source, index_of_case);