Skip to content

Revert timed-test-suite test integration (keep process_watchdog/timed_test_suite modules)#611

Open
parth21999 wants to merge 1 commit into
masterfrom
paaggarwal/revert-timed-test-integration
Open

Revert timed-test-suite test integration (keep process_watchdog/timed_test_suite modules)#611
parth21999 wants to merge 1 commit into
masterfrom
paaggarwal/revert-timed-test-integration

Conversation

@parth21999

Copy link
Copy Markdown
Member

Summary

Removes the in-process TIMED_TEST_SUITE_INITIALIZE/CLEANUP test integration. The pipeline-level PowerShell hang watchdog now in c-build-tools (produces full-memory dumps on per-test timeout) replaces the need for the in-process integration, with zero test code changes.

This keeps the process_watchdog and timed_test_suite modules (and their own tests) intact for future use — only the integration into the rest of the tests is removed.

What this reverts

Effect

  • Reverts ~88 test-file conversions and their c_pal/timed_test_suite.h PCH includes
  • Deletes the real_process_watchdog reals (these existed only to support the integration)
  • timed_test_suite.h returns to its clean module state (drops the UMOCK_C_H rename glue)
  • Test CMakeLists no longer link real_process_watchdog / extra c_pal

Kept intact

  • interfaces/inc/c_pal/process_watchdog.h, win32/src/process_watchdog_win32.c, linux/src/process_watchdog_linux.c
  • common/inc/c_pal/timed_test_suite.h
  • Module tests: process_watchdog_win32_ut, process_watchdog_linux_ut, process_watchdog_int, timed_test_suite_ut

Verification

  • Windows (MSBuild) + Linux (make) full builds — all UT + int targets build clean
  • c_pal_repo_validation — PASSED
  • Module tests process_watchdog_win32_ut and timed_test_suite_ut pass locally
  • Confirmed no remaining TIMED_TEST_SUITE_* usage or c_pal/timed_test_suite.h includes outside the module's own test

Notes

…_test_suite modules)

Reverts #546 (2b14d2e, Convert all tests to TIMED_TEST_SUITE_INITIALIZE/CLEANUP)
and #583 (198a0ad, Add real_ps_util_renames to real_process_watchdog).

The pipeline-level PowerShell hang watchdog in c-build-tools (produces dumps on
timeout) replaces the need for the in-process TIMED_TEST_SUITE integration. This
removes the test integration but keeps the process_watchdog and timed_test_suite
modules (and their own tests) intact for future use.

- Reverts ~88 test-file conversions and PCH timed_test_suite.h includes
- Deletes real_process_watchdog reals (only existed to support the integration)
- timed_test_suite.h returns to its clean module state (no UMOCK_C_H rename glue)
- Conflict files (interlocked_hl_ut, socket_transport_*_ut) auto-resolved keeping
  later #561/#587 changes while dropping the TIMED integration

Co-authored-by: Copilot <[email protected]>
@parth21999

Copy link
Copy Markdown
Member Author

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@parth21999

Copy link
Copy Markdown
Member Author

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

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