Skip to content

Commit 786a0ef

Browse files
parth21999Copilot
andcommitted
Move timed_test_suite.h include before ENABLE_MOCKS section
The include must be before ENABLE_MOCKS to prevent process_watchdog functions from being mocked, which causes unresolved external symbol linker errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent cf395cf commit 786a0ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/com_wrapper_ut/com_wrapper_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@
1919

2020
#include "c_pal/interlocked.h" /*included for mocking reasons - it will prohibit creation of mocks belonging to interlocked.h - at the moment verified through int tests - this is porting legacy code, temporary solution*/
2121

22+
#include "c_pal/timed_test_suite.h"
23+
2224
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2325
#include "c_pal/gballoc_hl.h"
2426
#include "c_pal/gballoc_hl_redirect.h"
25-
#include "c_pal/timed_test_suite.h"
2627
#include "test_object.h"
2728

2829
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS

0 commit comments

Comments
 (0)