Skip to content

Add TIMED_TEST_DEFAULT_TIMEOUT_MS argument to all TIMED_TEST_SUITE_INITIALIZE calls#545

Closed
parth21999 wants to merge 3 commits intomasterfrom
paaggarwal/fix-timed-test-suite-timeout-arg
Closed

Add TIMED_TEST_DEFAULT_TIMEOUT_MS argument to all TIMED_TEST_SUITE_INITIALIZE calls#545
parth21999 wants to merge 3 commits intomasterfrom
paaggarwal/fix-timed-test-suite-timeout-arg

Conversation

@parth21999
Copy link
Member

Summary

All 88 test files were using TIMED_TEST_SUITE_INITIALIZE(name) with only one argument. The macro requires a timeout_ms parameter as the second argument. This adds TIMED_TEST_DEFAULT_TIMEOUT_MS (10 minutes) to all calls.

Changes

Mechanical replacement across 100 files:

  • TIMED_TEST_SUITE_INITIALIZE(name) -> TIMED_TEST_SUITE_INITIALIZE(name, TIMED_TEST_DEFAULT_TIMEOUT_MS)

No logic changes. No include changes (c_pal/timed_test_suite.h was already included).

Prerequisites

…ITIALIZE calls

All test files were using TIMED_TEST_SUITE_INITIALIZE(name) with only
one argument. The macro requires a timeout_ms parameter. This adds
TIMED_TEST_DEFAULT_TIMEOUT_MS (10 minutes) as the second argument
to all 88 test files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@parth21999
Copy link
Member Author

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Added the include to 102 PCH files and 36 integration/perf test files.
Without this include, TIMED_TEST_SUITE_INITIALIZE is undefined and
the compiler emits C2220 errors (warning treated as error).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@parth21999
Copy link
Member Author

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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>
@parth21999
Copy link
Member Author

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@parth21999
Copy link
Member Author

Superseded by new PR based on master (without testrunnerswitcher changes)

@parth21999 parth21999 closed this Mar 2, 2026
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.

1 participant