Skip to content

Commit 554188e

Browse files
committed
Fix main function to setup and loop for Unity test framework
1 parent fb678b9 commit 554188e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

test/test_utf8/test_main.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void test_above_max_codepoint()
163163
TEST_ASSERT_TRUE(sanitizeUtf8(buf, sizeof(buf)));
164164
}
165165

166-
int main(int argc, char **argv)
166+
void setup()
167167
{
168168
UNITY_BEGIN();
169169

@@ -191,5 +191,7 @@ int main(int argc, char **argv)
191191
RUN_TEST(test_valid_max_codepoint);
192192
RUN_TEST(test_above_max_codepoint);
193193

194-
return UNITY_END();
194+
exit(UNITY_END());
195195
}
196+
197+
void loop() {}

0 commit comments

Comments
 (0)