mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
Change comments style in unity and test runner to compile with std=c89
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* AUTOGENERATED FILE. DO NOT EDIT. */
|
||||
|
||||
//=======Test Runner Used To Run Each Test Below=====
|
||||
/*=======Test Runner Used To Run Each Test Below=====*/
|
||||
#define RUN_TEST(TestFunc, TestLineNum) \
|
||||
{ \
|
||||
Unity.CurrentTestName = #TestFunc; \
|
||||
@@ -18,7 +18,7 @@
|
||||
UnityConcludeTest(); \
|
||||
}
|
||||
|
||||
//=======Automagically Detected Files To Include=====
|
||||
/*=======Automagically Detected Files To Include=====*/
|
||||
#include "unity.h"
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
@@ -26,7 +26,7 @@
|
||||
#include "stanky.h"
|
||||
#include <setjmp.h>
|
||||
|
||||
//=======External Functions This Runner Calls=====
|
||||
/*=======External Functions This Runner Calls=====*/
|
||||
extern void setUp(void);
|
||||
extern void tearDown(void);
|
||||
extern void test_TheFirstThingToTest(void);
|
||||
@@ -35,19 +35,19 @@ extern void test_TheThirdThingToTest(void);
|
||||
extern void test_TheFourthThingToTest(void);
|
||||
|
||||
|
||||
//=======Suite Setup=====
|
||||
/*=======Suite Setup=====*/
|
||||
static int suite_setup(void)
|
||||
{
|
||||
a_custom_setup();
|
||||
}
|
||||
|
||||
//=======Suite Teardown=====
|
||||
/*=======Suite Teardown=====*/
|
||||
static int suite_teardown(int num_failures)
|
||||
{
|
||||
a_custom_teardown();
|
||||
}
|
||||
|
||||
//=======Test Reset Option=====
|
||||
/*=======Test Reset Option=====*/
|
||||
void resetTest(void);
|
||||
void resetTest(void)
|
||||
{
|
||||
@@ -56,7 +56,7 @@ void resetTest(void)
|
||||
}
|
||||
|
||||
|
||||
//=======MAIN=====
|
||||
/*=======MAIN=====*/
|
||||
int main(void)
|
||||
{
|
||||
suite_setup();
|
||||
|
||||
Reference in New Issue
Block a user