change(wpa_supplicant): reformat test_eloop with astyle

This commit is contained in:
Ivan Grokhotkov
2023-10-04 12:47:16 +02:00
parent 955e2076b6
commit 6eec370532

View File

@@ -26,7 +26,6 @@ int executed_order[6];
int t; int t;
struct os_reltime ts; struct os_reltime ts;
/* there is only single instance of esp_timer so no need of protection */ /* there is only single instance of esp_timer so no need of protection */
void callback(void *a, void *b) void callback(void *a, void *b)
{ {
@@ -65,7 +64,7 @@ TEST_CASE("Test eloop timers run", "[eloop]")
test_utils_record_free_mem(); test_utils_record_free_mem();
int execution_order[6] = {1, 5, 3, 0, 2, 4}; int execution_order[6] = {1, 5, 3, 0, 2, 4};
int index[6] = {0,1,2,3,4,5}; int index[6] = {0, 1, 2, 3, 4, 5};
t = 0; t = 0;
/* We need pptask to run eloop, wifi init will do that */ /* We need pptask to run eloop, wifi init will do that */
@@ -79,7 +78,7 @@ TEST_CASE("Test eloop timers run", "[eloop]")
/* wait for all timers to run */ /* wait for all timers to run */
os_sleep(20, 0); os_sleep(20, 0);
/* check the execution order, this will also check whether they were fired at correct time */ /* check the execution order, this will also check whether they were fired at correct time */
TEST_ASSERT(memcmp(execution_order, executed_order, 6*sizeof(int)) == 0); TEST_ASSERT(memcmp(execution_order, executed_order, 6 * sizeof(int)) == 0);
TEST_ESP_OK(esp_wifi_stop()); TEST_ESP_OK(esp_wifi_stop());
TEST_ESP_OK(esp_wifi_deinit()); TEST_ESP_OK(esp_wifi_deinit());
os_sleep(3, 0); os_sleep(3, 0);