Skip to content

Commit 1746ed0

Browse files
committed
Fix whitespace to stop astyle complaining
1 parent 9e7c82c commit 1746ed0

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

events/tests/TESTS/events/queue/main.cpp

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -521,78 +521,78 @@ void event_period_tests()
521521
// Test a non periodic event ie dispatched only once
522522

523523
Event<void()> event1(&period_tests_queue, handler);
524-
524+
525525
event1.delay(10ms);
526526
event1.period(events::non_periodic);
527527
event1.post();
528528

529-
period_tests_queue.dispatch(80);
530-
529+
period_tests_queue.dispatch(80);
530+
531531
// Wait 100ms and check the event execution status
532-
wait_us(100 * 1000);
533-
534-
// Event should only have been dispatched once and thus counter
532+
wait_us(100 * 1000);
533+
534+
// Event should only have been dispatched once and thus counter
535535
// should be 1
536536
TEST_ASSERT_EQUAL(1, update_counter);
537537

538538
// Test an event with an invalid negative period value.
539-
539+
540540
update_counter = 0;
541-
541+
542542
Event<void()> event2(&period_tests_queue, handler);
543-
543+
544544
event2.delay(10ms);
545545
event2.period(-10ms);
546546
event2.post();
547547

548-
period_tests_queue.dispatch(80);
549-
548+
period_tests_queue.dispatch(80);
549+
550550
// Wait 100ms and check the event execution status
551-
wait_us(100 * 1000);
552-
553-
// Event should default to non_periodic and thus only have been
551+
wait_us(100 * 1000);
552+
553+
// Event should default to non_periodic and thus only have been
554554
// dispatched once. Counter should be 1.
555555
TEST_ASSERT_EQUAL(1, update_counter);
556556

557557
// Test an event with a zero period.
558-
558+
559559
update_counter = 0;
560-
560+
561561
Event<void()> event3(&period_tests_queue, handler);
562-
562+
563563
event3.delay(10ms);
564564
event3.period(0ms);
565565
event3.post();
566566

567-
period_tests_queue.dispatch(80);
568-
567+
period_tests_queue.dispatch(80);
568+
569569
// Wait 100ms and check the event execution status
570-
wait_us(100 * 1000);
571-
572-
// Event should default to non_periodic and thus only have been
570+
wait_us(100 * 1000);
571+
572+
// Event should default to non_periodic and thus only have been
573573
// dispatched once. Counter should be 1.
574574
TEST_ASSERT_EQUAL(1, update_counter);
575575

576576
// Test a periodic event ie dispatched a number of times
577577
update_counter = 0;
578-
578+
579579
Event<void()> event4(&period_tests_queue, handler);
580-
580+
581581
event4.delay(10ms);
582-
event4.period(20ms);
582+
event4.period(20ms);
583583
event4.post();
584584

585-
period_tests_queue.dispatch(80);
586-
585+
period_tests_queue.dispatch(80);
586+
587587
// Wait 100ms and check the event execution status
588-
wait_us(100 * 1000);
589-
588+
wait_us(100 * 1000);
589+
590590
// The event should be first dispatched after 10ms and then
591591
// every subsequent 20ms until the dispatcher has completed.
592592
// Thus the counter should be incremented after :
593593
// 10ms, 30ms, 50ms and 70ms
594594
TEST_ASSERT_EQUAL(4, update_counter);
595-
595+
596596
}
597597

598598
// Test setup

0 commit comments

Comments
 (0)