Skip to content

Commit

Permalink
Change the way we ignore the default runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandervoord committed Dec 5, 2019
1 parent c5c36ab commit e3132cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/unity.c
Original file line number Diff line number Diff line change
Expand Up @@ -1801,7 +1801,7 @@ void UnityMessage(const char* msg, const UNITY_LINE_TYPE line)

/*-----------------------------------------------*/
/* If we have not defined our own test runner, then include our default test runner to make life easier */
#ifndef RUN_TEST
#ifdef UNITY_SKIP_DEFAULT_RUNNER
void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum)
{
Unity.CurrentTestName = FuncName;
Expand Down
1 change: 1 addition & 0 deletions src/unity_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ void UnitySetTestFile(const char* filename);
void UnityConcludeTest(void);

#ifndef RUN_TEST
#define UNITY_SKIP_DEFAULT_RUNNER
void UnityDefaultTestRun(UnityTestFunction Func, const char* FuncName, const int FuncLineNum);
#endif

Expand Down

0 comments on commit e3132cd

Please sign in to comment.