Skip to content

Commit 5ae2b01

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 5802483 commit 5ae2b01

45 files changed

Lines changed: 90 additions & 45 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

tests/async_op_ut/async_op_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#include "testrunnerswitcher.h"
1414
#include "umock_c/umock_c.h"
1515

16+
#include "c_pal/timed_test_suite.h"
17+
1618
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
1719

1820
#include "c_pal/gballoc_hl.h"
@@ -23,7 +25,6 @@
2325
#include "real_gballoc_hl.h"
2426

2527
#include "c_pal/thandle.h"
26-
#include "c_pal/timed_test_suite.h"
2728

2829
#include "c_util/async_op.h"
2930

tests/async_retry_wrapper_ut/async_retry_wrapper_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
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
#define GBALLOC_HL_REDIRECT_H
2426
#undef GBALLOC_HL_REDIRECT_H
@@ -32,7 +34,6 @@
3234

3335
#include "c_pal/interlocked_hl.h"
3436
#include "c_pal/log_critical_and_terminate.h"
35-
#include "c_pal/timed_test_suite.h"
3637

3738
#include "test_async.h"
3839
#include "test_ref_counted.h"

tests/async_type_helper_copy_value_handler_ut/async_type_helper_copy_value_handler_ut_pch.h

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

1818
#include "c_pal/interlocked.h" /*included for mocking reasons - it will prohibit creation of mocks belonging to this interlocked.h, temporary solution*/
1919

20+
#include "c_pal/timed_test_suite.h"
21+
2022
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2123
#include "c_pal/gballoc_hl.h"
2224
#include "c_pal/gballoc_hl_redirect.h"
23-
#include "c_pal/timed_test_suite.h"
2425
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2526

2627
#include "real_gballoc_hl.h"

tests/async_type_helper_ref_counted_handler_ut/async_type_helper_ref_counted_handler_ut_pch.h

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

1818
#include "c_pal/interlocked.h" /*included for mocking reasons - it will prohibit creation of mocks belonging to this interlocked.h, temporary solution*/
1919

20+
#include "c_pal/timed_test_suite.h"
21+
2022
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2123
#include "c_pal/gballoc_hl.h"
2224
#include "c_pal/gballoc_hl_redirect.h"
23-
#include "c_pal/timed_test_suite.h"
2425
#include "test_ref_counted.h"
2526
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2627
#include "real_gballoc_hl.h"

tests/async_type_helper_thandle_handler_ut/async_type_helper_thandle_handler_ut_pch.h

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

1818
#include "c_pal/interlocked.h" /*included for mocking reasons - it will prohibit creation of mocks belonging to this interlocked.h, temporary solution*/
1919

20+
#include "c_pal/timed_test_suite.h"
21+
2022
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2123
#include "c_pal/gballoc_hl.h"
2224
#include "c_pal/gballoc_hl_redirect.h"
23-
#include "c_pal/timed_test_suite.h"
2425
#include "test_thandle.h"
2526
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2627

tests/async_type_helper_ut/async_type_helper_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 "c_util/constbuffer.h"
2728
#include "c_util/constbuffer_array.h"
2829
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS

tests/azure_base64_ut/azure_base64_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@
1515
#include "umock_c/umock_c.h"
1616
#include "umock_c/umock_c_negative_tests.h"
1717

18+
#include "c_pal/timed_test_suite.h"
19+
1820
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
1921
#include "c_pal/gballoc_hl.h"
2022
#include "c_pal/gballoc_hl_redirect.h"
21-
#include "c_pal/timed_test_suite.h"
2223
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2324

2425
#include "c_util/strings.h"

tests/buffer_ut/buffer_ut_pch.h

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

1818
#include "real_gballoc_ll.h"
1919

20+
#include "c_pal/timed_test_suite.h"
21+
2022
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2123
#include "c_pal/gballoc_hl.h"
2224
#include "c_pal/gballoc_hl_redirect.h"
23-
#include "c_pal/timed_test_suite.h"
2425
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2526

2627
#include "real_gballoc_hl.h"

tests/cancellation_token_ut/cancellation_token_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@
1818
#include "umock_c/umocktypes_bool.h"
1919
#include "umock_c/umocktypes_stdint.h"
2020

21+
#include "c_pal/timed_test_suite.h"
22+
2123
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2224
#include "c_pal/gballoc_hl.h"
2325
#include "c_pal/gballoc_hl_redirect.h"
2426
#include "c_pal/interlocked.h"
25-
#include "c_pal/timed_test_suite.h"
2627
#include "c_util/tcall_dispatcher_cancellation_token_cancel_call.h"
2728
#include "umock_c/umock_c_DISABLE_MOCKS.h" // ============================== DISABLE_MOCKS
2829

tests/channel_ut/channel_ut_pch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
#include "c_pal/execution_engine.h"
2323
#include "c_pal/interlocked.h"
2424

25+
#include "c_pal/timed_test_suite.h"
26+
2527
#include "umock_c/umock_c_ENABLE_MOCKS.h" // ============================== ENABLE_MOCKS
2628
#include "c_pal/gballoc_hl.h"
2729
#include "c_pal/gballoc_hl_redirect.h"
@@ -51,7 +53,6 @@
5153
#include "real_rc_string.h"
5254

5355
#include "c_pal/thandle.h"
54-
#include "c_pal/timed_test_suite.h"
5556

5657
#include "c_util/channel.h"
5758

0 commit comments

Comments
 (0)