Skip to content

Enable assert-util testing on windows using new shared spawn and wait utilities. - #3844

Merged
igaw merged 2 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:enable-test-assert-util-on-windows
Aug 17, 2026
Merged

Enable assert-util testing on windows using new shared spawn and wait utilities.#3844
igaw merged 2 commits into
linux-nvme:masterfrom
Micron-TPG-OSS:enable-test-assert-util-on-windows

Conversation

@brgoing

@brgoing brgoing commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Windows doesn't support fork, so the assert-util tests needed to be redesigned slightly to work across platforms.

  • Adds new shr_pipe, shr_spawn, and shr_wait_proc utils with Linux and Windows implementations.
  • Redesigns the assert-util tests to use the new shared pipe and spawn utilities. Since fork is not supported on Windows, the test design now re-spawns the test binary as a child process.
  • Enables test-assert-utils on Windows.

Adds shared utilities for spawning and waiting for processes,
and for creating pipes.  Includes Linux and Windows implementations.

Signed-off-by: Broc Going <bgoing@micron.com>
…port

Windows doesn't support fork. Change the test to re-invoke the test
binary as a child process using shr_spawn. Enable the test on Windows.

Signed-off-by: Broc Going <bgoing@micron.com>
@brgoing brgoing changed the title Enable test assert util on windows using new shared spawn and wait utilities. Enable assert-util testing on windows using new shared spawn and wait utilities. Aug 14, 2026
@igaw

igaw commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

FWIW, when I was extending the test coverage I was not sure if it was worth to adding the process management functions. Well, we might need it somewhere else, so let's add them.

Thanks!

@igaw
igaw merged commit 3fb3543 into linux-nvme:master Aug 17, 2026
32 of 33 checks passed
@brgoing
brgoing deleted the enable-test-assert-util-on-windows branch August 17, 2026 19:00
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