mirror of https://github.com/ARMmbed/mbed-os.git
tests: fix coding style
parent
f264a41373
commit
28a5906479
|
@ -53,7 +53,7 @@ static void minimum_data_test()
|
|||
}
|
||||
|
||||
|
||||
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
|
||||
utest::v1::status_t greentea_test_setup(const size_t number_of_cases)
|
||||
{
|
||||
GREENTEA_SETUP(30, "default_auto");
|
||||
return greentea_test_setup_handler(number_of_cases);
|
||||
|
@ -66,6 +66,7 @@ Case cases[] = {
|
|||
|
||||
Specification specification(greentea_test_setup, cases, greentea_test_teardown_handler);
|
||||
|
||||
int main() {
|
||||
int main()
|
||||
{
|
||||
Harness::run(specification);
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ void wifi_connect(void)
|
|||
{
|
||||
WiFiInterface *wifi = get_interface();
|
||||
|
||||
char ssid[SSID_MAX_LEN+1] = MBED_CONF_APP_WIFI_UNSECURE_SSID;
|
||||
char ssid[SSID_MAX_LEN + 1] = MBED_CONF_APP_WIFI_UNSECURE_SSID;
|
||||
|
||||
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->set_credentials(ssid, NULL));
|
||||
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->connect());
|
||||
|
@ -42,7 +42,7 @@ void wifi_connect(void)
|
|||
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->disconnect());
|
||||
|
||||
// Driver is expected to cache the credentials
|
||||
memset(ssid, 0, SSID_MAX_LEN+1);
|
||||
memset(ssid, 0, SSID_MAX_LEN + 1);
|
||||
|
||||
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->connect());
|
||||
TEST_ASSERT_EQUAL_INT(NSAPI_ERROR_OK, wifi->disconnect());
|
||||
|
|
Loading…
Reference in New Issue