diff --git a/tests/cases/01_scheduler.c b/tests/cases/01_scheduler.c index 2a2a9e6..3949825 100644 --- a/tests/cases/01_scheduler.c +++ b/tests/cases/01_scheduler.c @@ -36,7 +36,7 @@ static void a_01_scheduler_basic() TEST_ASSERT_TRUE_MESSAGE(a, "task set_a should have run"); TEST_ASSERT_TRUE_MESSAGE(b, "task set_b should have run"); TEST_ASSERT_TRUE_MESSAGE(c, "task set_c should have run"); - TEST_PASS; + TEST_PASS(); } /* Verify that a high-priority task will starve a lower priority task */ @@ -67,5 +67,5 @@ static void a_01_scheduler_priorities() vTaskDelay(1); TEST_ASSERT_TRUE_MESSAGE(lower, "lower prio task should have run"); - TEST_PASS; + TEST_PASS(); } diff --git a/tests/cases/02_heap.c b/tests/cases/02_heap.c index 8380574..54bb5e3 100644 --- a/tests/cases/02_heap.c +++ b/tests/cases/02_heap.c @@ -34,7 +34,7 @@ static void a_02_heap_simple() after = xPortGetFreeHeapSize(); printf("after freeing xPortGetFreeHeapSize = %d bytes\n", after); TEST_ASSERT_UINT32_WITHIN_MESSAGE(100, freeheap, after, "Free heap size after freeing buffer should be close to initial"); - TEST_PASS; + TEST_PASS(); } /* Ensure malloc behaves when out of memory */ @@ -52,5 +52,5 @@ static void a_02_heap_full() free(y); z = malloc(32768); TEST_ASSERT_NOT_NULL_MESSAGE(z, "Allocating 32kB should succeed after first block freed"); - TEST_PASS; + TEST_PASS(); } diff --git a/tests/include/testcase.h b/tests/include/testcase.h index c696596..3ea6857 100644 --- a/tests/include/testcase.h +++ b/tests/include/testcase.h @@ -8,7 +8,7 @@ #include "unity.h" /* Need to explicitly flag once a test has completed successfully. */ -#define TEST_PASS do { UnityConcludeTest(); while(1) { } } while (0) +#define TEST_PASS() do { UnityConcludeTest(); while(1) { } } while (0) /* Types of test, defined by hardware requirements */ typedef enum {