Skip to content

Disable test hooks fixes - #1501

Merged
JohnMcPMS merged 2 commits into
microsoft:masterfrom
JohnMcPMS:disabletesthooksfixes
Sep 23, 2021
Merged

JohnMcPMS merged 2 commits into
microsoft:masterfrom
JohnMcPMS:disabletesthooksfixes

Conversation

@JohnMcPMS

@JohnMcPMS JohnMcPMS commented Sep 23, 2021 •

Copy link
Copy Markdown
Member

Change

Fixes to allow building with AICLI_DISABLE_TEST_HOOKS defined. Specifically:

  1. Exclude some function definitions whose declarations were already excluded.
  2. Refactor Context::ShouldExecuteWorkflowTask to not be virtual as any virtual function or member field being inside AICLI_DISABLE_TEST_HOOKS could lead to an ODR violation if not all projects properly apply it.
Microsoft Reviewers: Open in CodeFlow

@JohnMcPMS
JohnMcPMS requested a review from a team as a code owner September 23, 2021 04:29

@yao-msft yao-msft left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@JohnMcPMS
JohnMcPMS merged commit 810a441 into microsoft:master Sep 23, 2021
@JohnMcPMS
JohnMcPMS deleted the disabletesthooksfixes branch September 23, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants