Commit c7b91fa
Convert all tests to use TIMED_TEST_SUITE_INITIALIZE/CLEANUP
- Replace TEST_SUITE_INITIALIZE/CLEANUP with TIMED_ versions in 91 test files
- Add c_pal/timed_test_suite.h to 62 PCH files and 36 int/perf test files
- Add c_pal_reals and c_pal to ADDITIONAL_LIBS in test CMakeLists.txt
- Add process_watchdog reals (real_process_watchdog.c/.h) for both win32 and linux
- timed_test_suite.h uses real_ renames so the watchdog works even when
interlocked and other dependencies are mocked in unit tests
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2e23fd9 commit c7b91fa
226 files changed
Lines changed: 548 additions & 324 deletions
File tree
- c_pal_ll
- interfaces/tests/interlocked_macros_ut
- linux/tests
- interlocked_linux_ut
- sync_linux_ut
- win32/tests
- interlocked_win32_ut
- sync_win32_ut
- common
- inc/c_pal
- reals
- tests
- arithmetic_int
- call_once_int
- call_once_ut
- interlocked_hl_ut
- lazy_init_int
- lazy_init_ut
- log_critical_and_terminate_ut
- ps_util_ut
- real_thandle_helper_ut
- real_thandle_log_context_handle_ut
- refcount_ut
- s_list_ut
- sm_int
- sm_ut
- thandle_2_ut
- thandle_ptr_int
- thandle_ptr_ut
- thandle_ut
- threadpool_int
- timed_test_suite_ut
- tqueue_int
- tqueue_ut
- interfaces/tests
- file_int
- gballoc_hl_perf
- pipe_int
- socket_transport_int
- srw_lock_int
- srw_lock_ll_int
- sysinfo_int
- timer_int
- uuid_int
- linux
- linux_reals
- tests
- async_socket_linux_int
- async_socket_linux_ut
- completion_port_linux_ut
- error_handling_linux_ut
- execution_engine_linux_ut
- file_util_linux_ut
- gballoc_hl_passthrough_ut
- gballoc_ll_passthrough_int
- gballoc_ll_passthrough_ut
- linux_reals_ut
- pipe_linux_ut
- platform_linux_ut
- socket_transport_linux_ut
- srw_lock_linux_ut
- srw_lock_ll_linux_ut
- string_utils_int
- sysinfo_linux_ut
- threadpool_linux_ut
- timer_linux_ut
- uuid_linux_ut
- umocktypes/tests/umocktypes_uuid_t_int
- win32
- reals
- tests
- async_socket_win32_int
- async_socket_win32_ut
- execution_engine_win32_ut
- file_win32_ut
- gballoc_hl_int
- gballoc_hl_metrics_ut
- gballoc_hl_metrics_wout_init_ut
- gballoc_hl_passthrough_ut
- gballoc_ll_jemalloc_int
- gballoc_ll_jemalloc_ut
- gballoc_ll_mimalloc_int
- gballoc_ll_mimalloc_ut
- gballoc_ll_passthrough_int
- gballoc_ll_passthrough_ut
- gballoc_ll_win32heap_int
- gballoc_ll_win32heap_ut
- job_object_helper_int
- job_object_helper_ut
- malloc_multi_flex_int
- malloc_multi_flex_ut
- pipe_win32_ut
- platform_win32_ut
- reals_win32_ut
- single_performance_counter_win32_ut
- socket_transport_win32_ut
- srw_lock_ll_win32_ut
- srw_lock_win32_ut
- string_utils_int
- string_utils_win32_ut
- sysinfo_win32_ut
- threadpool_win32_ut
- timer_win32_ut
- uuid_win32_ut
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
221 | 245 | | |
222 | 246 | | |
223 | 247 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
0 commit comments