Clear detail stack in every situation · ThrowTheSwitch/Unity@cd90181 · GitHub
Skip to content

Commit cd90181

Browse files
committed
Clear detail stack in every situation
1 parent 3a6eb6d commit cd90181

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎auto/generate_test_runner.rb‎

Lines changed: 4 additions & 0 deletions

‎src/unity.c‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2527,8 +2527,12 @@ void UnityBegin(const char* filename)
25272527
Unity.TestIgnores = 0;
25282528
Unity.CurrentTestFailed = 0;
25292529
Unity.CurrentTestIgnored = 0;
2530-
2530+
#ifdef UNITY_DETAIL_STACK_SIZE
2531+
Unity.CurrentDetailStackSize = 0;
2532+
#else
25312533
UNITY_CLR_DETAILS();
2534+
#endif
2535+
25322536
UNITY_OUTPUT_START();
25332537
}
25342538

‎src/unity_internals.h‎

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)