Add real_ps_util_renames to real_process_watchdog to avoid c_pal link in UTs#583
Open
parth21999 wants to merge 1 commit intomasterfrom
Open
Add real_ps_util_renames to real_process_watchdog to avoid c_pal link in UTs#583parth21999 wants to merge 1 commit intomasterfrom
parth21999 wants to merge 1 commit intomasterfrom
Conversation
Member
Author
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
… dependency real_process_watchdog calls ps_util_terminate_process via LogCriticalAndTerminate. By adding real_ps_util_renames.h, this becomes real_ps_util_terminate_process which is provided by c_pal_reals (already linked in UTs). This eliminates the need for downstream repos to link c_pal in unit tests solely for watchdog support. Also fixes include order in int tests (timed_test_suite.h before umock_c.h) so renames are not triggered and int tests use process_watchdog directly from c_pal without needing any reals libraries. Fixes gballoc_ll_passthrough_ut PCH include order (umock_c.h must come before timed_test_suite.h for proper rename activation in UTs). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
623941f to
0a8e67c
Compare
Member
Author
|
/AzurePipelines run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR makes
real_process_watchdogself-contained by addingreal_ps_util_renames.hto its compilation. Previously,real_process_watchdogcalledps_util_terminate_process(viaLogCriticalAndTerminate), requiring downstream UTs to linkc_pal. Nowps_util_terminate_processis renamed toreal_ps_util_terminate_process, which is provided byc_pal_reals(already linked in all UTs).Changes:
win32/reals/real_process_watchdog.c+linux/linux_reals/real_process_watchdog.c: Add#include "real_ps_util_renames.h"srw_lock_int,srw_lock_ll_int,threadpool_int): Changec_pal_ll_realstoc_pal_realsto providereal_ps_util_terminate_processgballoc_ll_passthrough_utPCH: Addumock_c.hbeforetimed_test_suite.hfor proper rename activationThis enables downstream repos (c-util, etc.) to avoid linking
c_palin unit tests solely for watchdog support.