Skip to content

Commit fd92a22

Browse files
Filip Jagodzinski0xc0170
authored andcommitted
Test: Watchdog: Fix astyle errors
1 parent be6a26e commit fd92a22

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

TESTS/mbed_drivers/watchdog/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ void wdg_kicking_thread_fun()
8181

8282
void test_max_timeout_is_valid()
8383
{
84-
Watchdog& watchdog = Watchdog::get_instance();
84+
Watchdog &watchdog = Watchdog::get_instance();
8585
TEST_ASSERT(watchdog.get_max_timeout() > 1UL);
8686
}
8787

8888
void test_stop()
8989
{
9090
watchdog_features_t features = hal_watchdog_get_platform_features();
91-
Watchdog& watchdog = Watchdog::get_instance();
91+
Watchdog &watchdog = Watchdog::get_instance();
9292
if (!features.disable_watchdog) {
9393
TEST_ASSERT_FALSE(watchdog.stop());
9494
TEST_IGNORE_MESSAGE("Disabling watchdog not supported for this platform");
@@ -118,7 +118,7 @@ void test_restart()
118118
return;
119119
}
120120

121-
Watchdog& watchdog = Watchdog::get_instance();
121+
Watchdog &watchdog = Watchdog::get_instance();
122122
uint32_t max_timeout = watchdog.get_max_timeout();
123123
uint32_t timeouts[] = {
124124
max_timeout / 4,
@@ -194,7 +194,7 @@ void test_start()
194194
TEST_IGNORE_MESSAGE("Requested timeout value is too short -- ignoring test case.");
195195
return;
196196
}
197-
Watchdog& watchdog = Watchdog::get_instance();
197+
Watchdog &watchdog = Watchdog::get_instance();
198198
TEST_ASSERT_TRUE(watchdog.start(timeout_ms));
199199
uint32_t actual_timeout = watchdog.get_timeout();
200200
// The watchdog should trigger at, or after the timeout value.
@@ -205,7 +205,7 @@ void test_start()
205205

206206
void test_start_max_timeout()
207207
{
208-
Watchdog& watchdog = Watchdog::get_instance();
208+
Watchdog &watchdog = Watchdog::get_instance();
209209
uint32_t max_timeout = watchdog.get_max_timeout();
210210
TEST_ASSERT_TRUE(watchdog.start(max_timeout));
211211
// The watchdog should trigger at, or after the timeout value.

TESTS/mbed_drivers/watchdog_reset/main.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void test_simple_reset()
101101
TEST_ASSERT_MESSAGE(0, "Dev-host communication error.");
102102
return;
103103
}
104-
Watchdog& watchdog = Watchdog::get_instance();
104+
Watchdog &watchdog = Watchdog::get_instance();
105105
TEST_ASSERT_FALSE(watchdog.is_running());
106106
TEST_ASSERT_TRUE(watchdog.start(TIMEOUT_MS));
107107
TEST_ASSERT_TRUE(watchdog.is_running());
@@ -131,7 +131,7 @@ void test_sleep_reset()
131131
TEST_ASSERT_MESSAGE(0, "Dev-host communication error.");
132132
return;
133133
}
134-
Watchdog& watchdog = Watchdog::get_instance();
134+
Watchdog &watchdog = Watchdog::get_instance();
135135
TEST_ASSERT_FALSE(watchdog.is_running());
136136
TEST_ASSERT_TRUE(watchdog.start(TIMEOUT_MS));
137137
TEST_ASSERT_TRUE(watchdog.is_running());
@@ -168,7 +168,7 @@ void test_deepsleep_reset()
168168
TEST_ASSERT_MESSAGE(0, "Dev-host communication error.");
169169
return;
170170
}
171-
Watchdog& watchdog = Watchdog::get_instance();
171+
Watchdog &watchdog = Watchdog::get_instance();
172172
TEST_ASSERT_FALSE(watchdog.is_running());
173173
TEST_ASSERT_TRUE(watchdog.start(TIMEOUT_MS));
174174
TEST_ASSERT_TRUE(watchdog.is_running());
@@ -204,7 +204,7 @@ void test_restart_reset()
204204
}
205205

206206
// Phase 1. -- run the test code.
207-
Watchdog& watchdog = Watchdog::get_instance();
207+
Watchdog &watchdog = Watchdog::get_instance();
208208
TEST_ASSERT_FALSE(watchdog.is_running());
209209
TEST_ASSERT_TRUE(watchdog.start(TIMEOUT_MS));
210210
TEST_ASSERT_TRUE(watchdog.is_running());
@@ -241,7 +241,7 @@ void test_kick_reset()
241241
}
242242

243243
// Phase 1. -- run the test code.
244-
Watchdog& watchdog = Watchdog::get_instance();
244+
Watchdog &watchdog = Watchdog::get_instance();
245245
TEST_ASSERT_FALSE(watchdog.is_running());
246246
TEST_ASSERT_TRUE(watchdog.start(TIMEOUT_MS));
247247
TEST_ASSERT_TRUE(watchdog.is_running());

0 commit comments

Comments
 (0)